downlink works too
This commit is contained in:
@ -64,7 +64,7 @@ typedef struct {
|
||||
uint64_t addr;
|
||||
uint8_t index;
|
||||
char label[LABEL_LENGTH+1];
|
||||
} sensor_t;
|
||||
} __attribute__((packed)) sensor_t;
|
||||
|
||||
sensor_t sensors[NUM_OF_SENSORS];
|
||||
|
||||
@ -144,6 +144,7 @@ void downLinkDataHandle(McpsIndication_t *mcpsIndication)
|
||||
Serial.print("+REV DATA:");
|
||||
|
||||
sensor_t downlinkSensors[NUM_OF_SENSORS];
|
||||
|
||||
if (mcpsIndication->BufferSize != sizeof(downlinkSensors)) {
|
||||
Serial.println("illegal number of octets in downlink message");
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user