Cloud platform for visual programming of wireless sensor networks