Waspmote application code