typedef struct SurgeMsg {
uint8_t type;
uint16_t reading;
uint16_t parentaddr;
uint32_t seq_no;
uint8_t light;
uint8_t temp;
uint8_t magx;
uint8_t magy;
uint8_t accelx;
uint8_t accely;
} __attribute__ ((packed)) SurgeMsg;
I don't know exactly why it has a field "uint16_t reading;"here. And in
SurgeM.nc there is "pReading->reading = gPowerData;"
So can you tell me what it means ? thanks a lot.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help