general platform for wireless sensor network