Adaptive energy saving algorithms for Internet of Things devices integrating end and edge strategies | Synapse