[Tinyos-help] AM Message llength incorrect in recieved message
Ian Welch
iwelch82 at gmail.com
Mon Jan 21 17:05:02 PST 2008
I just updated my TOS Source tree. When I run my program the received
message at the base station (2.0 beta) placed the length in the AM type
field and sets the length field to 0. Any thoughts?
task void sendStatus() {
#if DEBUG == TRUE
call StreamDebug.send((uint8_t *)"Sending insole status to base
station. ",39);
#endif
if(!busy) {
StatusMsg* newpkt = (StatusMsg*)(call MPacket.getPayload
(&statuspacket,NULL));
atomic {
newpkt->mode = 8;
newpkt->nodeid = TOS_NODE_ID;
newpkt->time = call TimeKeeper.getTime();
}
if(call MSend.send(1, &statuspacket, 8 /*sizeof(StatusMsg)*/) ==
SUCCESS) {
atomic {busy = TRUE;}
}
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20080121/9752b7f1/attachment.html
More information about the Tinyos-help
mailing list