M_ACK_VARIABLE or M_SET_VARIABLE
-
In servo actuator sketch there is a line
if (message.type==V_DIMMER) { // This could be M_ACK_VARIABLE or M_SET_VARIABLE
I do not understand the comment at all. I searched, but I can't find any information about M_ACK_VARIABLE or M_SET_VARIABLE
Please, help me to understand how can I send these type of messages, why one would like to do that and when is it necessary to use them.
Can Domoticz sent theses messages?
-
@Lyubomyr This M_ACK_VARIABLE or M_SET_VARIABLE looks like a left over from old releases
but what is meant here:if (message.type==V_DIMMER) { // can be a new set dimmer value form the Gateway or an acknowledge from a previous send message
In this example there are no message send and thus not acknowledged .
In other examples this line is seen, making the distinguish between new value or ACKif (message.isAck()) { Serial.println("This is an ack from gateway"); }
Requesting for an ACK when sending a message is done by setting the third parameter of gw.send() to true
gw.send(msg.set(state?false:true), true);
-
Thank You very much!
1 out of 3
Suggested Topics
-
Arduino Celebrates 10 years (Malmö/Sweden)
Announcements • 29 Mar 2014, 17:08 • hek 29 Mar 2014, 17:08 -
Counting Incoming and Outgoing Messages from a Gateway
Development • 10 Dec 2024, 21:57 • Trand 14 Dec 2024, 20:23 -
Saving last known good state, but not in EEPROM
Development • 30 Jan 2024, 18:46 • OldSurferDude 15 Jan 2025, 08:51 -
Sending offset to node
Development • 31 Jan 2025, 00:59 • bsl88k 4 Feb 2025, 12:14 -
Adding Listen only device to my system.
Development • 26 Feb 2025, 00:39 • dpcons 26 Feb 2025, 06:26 -
Radio waking up for no reason.
Development • 4 Jul 2020, 21:09 • Sasquatch 15 Jan 2025, 08:33