added: code for beaglebone and tinyos