Variables are ack'ed with messageType M_SET_VARIABLE
-
Hi there,
I recently started using MySensors and stumbled upon what seems to be a problem when ack'ing a variable sent by the gateway to a sensor.
This variable is sent using M_SET_VARIABLE and is ack'ed in the sensor's sendVariableAck() method by sending a message of type M_SET_VARIABLE.Setting of the messageType is located in: Sensor::begin(uint8_t _radioId, rf24_pa_dbm_e paLevel, uint8_t channel, rf24_datarate_e dataRate)
ack.header.messageType = M_SET_VARIABLE;This should be changed into:
ack.header.messageType = M_ACK_VARIABLE;Or am I missing something?
-
Hmm. I'm refactoring this as we speak (among other things). In the future message acking will be possible to do between sensors and when sending data to the controller which is missing in the current version.
But the idea is to ask for a ACK and get SET back.
-
Hmm. I'm refactoring this as we speak (among other things). In the future message acking will be possible to do between sensors and when sending data to the controller which is missing in the current version.
But the idea is to ask for a ACK and get SET back.