Stav dette: Architecture-independent programming for wireless sensor networks