Programming sensor networks with state-centric services
Protothreads: simplifying event-driven programming of memory-constrained embedded systems