This overarching objective of our proposal is automation using IoT with a special focus on smart city and smart agriculture applications, where requirements of ultra-high reliability and (for some applications) short latency are of paramount importance trading-off with the necessity of ultra-low energy operation, low-cost and scalability.