On Mar 28, 2008, at 7:34 AM, Jan Hauer wrote:
You should make sure that you don't call Resource.request() while you're still owner. You could do it by keeping state in some module variable, but you could also do it through "if (!call Resource.isOwner()) call Resource.request();" in your Timer.fired(). Note that this means, that your samples might not be taken at regular intervals (you lose a sample when isOwner() returns FALSE)
That's not right. It should be valid to request while owner: this enqueues a request, which will be serviced (after possibly others) once release() is called. TEP 108 is very clear on this.
Phil _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
