Generic Platform for Wireless Sensor Network