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_VARIABLEI 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?
-
In servo actuator sketch there is a line
if (message.type==V_DIMMER) { // This could be M_ACK_VARIABLE or M_SET_VARIABLEI 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 messageIn 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);
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login