Hi all:

I am new to Tinyos.  I am trying to block the data packets. by using the
following code:

*noradio = 0*
*if(noradio == 0){//if we want to use radio, noradio = 0, dont want noradio
= 1*
* noradio = 1;*
* if (call Send.send(BASE_STATION_ADDRESS,MODE_UPSTREAM,msg_radio,
sizeof(XDataMsg)) != SUCCESS) {*
* call Leds.yellowOn();      *
*     atomic {*
*      sending_packet = FALSE;*
*      main_state = START;*
*     }*
* }*
*}*
*
*
the problem i have is, once it is turned off, the data packets are not
sending again.
could anybody give a hint?

Thank you all

-- 
Sincerely
Yuanwen Ji  (Will)
Mobile: 917-517-1865
Email:  [email protected]
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to