New ack bit in header indicating of message is an actual ack of a message.

Use msg.getAck() to check in incoming message callback.
This commit is contained in:
Henrik Ekblad
2014-07-12 23:49:27 +02:00
parent 0cd56e88b2
commit ef91d9b9cc
4 changed files with 42 additions and 18 deletions
+2 -1
View File
@@ -160,7 +160,8 @@ void MyGateway::parseAndSend(char *commandBuffer) {
msg.sensor = sensor;
msg.type = type;
mSetCommand(msg,command);
mSetAck(msg,ack==0?false:true);
mSetRequestAck(msg,ack==0?false:true);
mSetAck(msg,false);
msg.set(value);
ok = sendRoute(msg);
if (!ok) {