General platform for wireless sensor network