Tapper: a lightweight scripting engine for highly constrained wireless sensor nodes