A comparison of software platforms for Wireless Sensor Networks: MANTIS, TinyOS and ZigBee