test code for mote on mbed platform