downlink works too

This commit is contained in:
2023-01-26 11:44:47 +01:00
parent 8be1bae1e5
commit 2ccc6c0307
2 changed files with 37 additions and 9 deletions

View File

@ -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 {