The controller has to be awake to do a sensor sample
so about the only thing you can do is put your threshold
check in the readdone() and then put it back to sleep
if it's not to your liking.

MS

João Paulo Amaro da Costa Luz Carneiro wrote:
> Hi,
> Is it possible to set a value as threshold for a sensor?
> I would like to read photo sensor from mda100 but would like readdone  
> to only be signaled if captured value is over some threshold,  
> otherwise leaving the cpu in sleep mode.
> Regards,
> 
> Joao
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to