Here is what the received placket looks like when running Listen
00 00 01 00 22 08
On Jan 21, 2008 6:05 PM, Ian Welch <[EMAIL PROTECTED]> wrote:
> 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;}
> }
> }
> }
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help