ESRA: Energy soaring-based routing algorithm for IoT applications in software-defined wireless sensor networks | Synapse