Hi all,
My application is using a float number (simulating sensors data) and I
want to send to a Xmesh Network. How can I change the Xdatamsg? Can I
insert the float number in the packet? I am using the MDA100 sensor. The
packet that I am using has the structure below. I tried to change the
sensorboardApp.h document of my application and the xml document of the
Moteworks, but it
didnt work. Can someone help me?
P.S: Actually, I tried to insert a uint16_t variable, but it didnt
work too.
typedef struct XMeshHeader{
uint8_t board_id;
uint8_t packet_id; // 3
//uint8_t node_id; // 3
uint16_t parent
}__attribute__ ((packed)) XMeshHeader;
typedef struct PData1 {
uint16_t vref;
uint16_t thermistor;
uint16_t photo;
uint16_t adc2;
uint16_t adc3;
uint16_t adc4;
uint16_t adc5;
uint16_t adc6;
float val; (It is the value that I need insert to the packet)
} __attribute__ ((packed)) PData1;
typedef struct XDataMsg {
XMeshHeader xMeshHeader;
union {
PData1 datap1;
}xData;
} __attribute__ ((packed)) XDataMsg;
Thanks in advance.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help