Very simple question
If I need to add additional fields for some data from outside fixtures to pass it from router to coordinator...I do (as shown with the comment "//I added this" in the code)
Would this work such that I can then simply call AppMessage.data.SomeStatus1 = ... ? Are there any other changes I needed to make that I am not forseeing?
Code:
typedef struct _AppMessage_t
{
uint8_t messageType;
uint8_t nodeType;
ExtAddr_t extAddr;
ShortAddr_t shortAddr;
uint32_t softVersion;
uint32_t channelMask;
PanId_t panID;
uint8_t workingChannel;
ShortAddr_t parentShortAddr;
uint8_t lqi;
uint8_t rssi;
int8_t SomeStatus1;//I added this
//additional field
uint8_t boardType;//1
uint8_t sensorsSize;//1
struct {
int32_t battery;
int32_t temperature;
int32_t light;
int32_t SomeStatus2;// I added this
} meshbean;
|