you also need to reset the variable when the upper limit is reached.
On Tue, Nov 9, 2010 at 1:50 PM, wafa jaballah <[email protected]>wrote:
> Hello,
>
> I want to evaluate a delay term in telosB motes. When simulating with
> tossim, I used the following code and I try to use it also when using
> TelosB.
>
>
> event error_t Receiver.authenticDataReady(Data_Packet_t *p, long
> auth_delay)
> {
>
> authentication_delay+=auth_delay;
> ............
> ................
> printf( " the authentication delay is %d \n", authentication_delay);
>
> return SUCCESS;
> }
>
>
> In Simulation , it is welle done.
> But when I used my telosB motes in order to evaluate the delay, sometimes I
> found logic values of delay,
> and sometimes not. I found even negative values!!!!!!!!!
> What it is wrong with this ?
>
>
> I kindly appreciate your Help.
> Thanks in Advance!
>
>
> --
>
> Best Regards,
> Wafa Ben Jaballah
>
>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
--
Wasif Masood
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help