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

Reply via email to