This work presents the development of a common control paradigm based on wireless sensor networks, which takes into account implementation of LoRa WAN network in Latvia. This work presents a research on creation of smart municipal systems in a local cloud of services that apply SOA and IoT. A broker that applies orchestration services resides on a gateway, which provides adapter and protocols translation functions, and on a tool for wiring together hardware devices. We implemented a MQTT enabled service broker, which deploys data flow programming tool Node-RED for wiring together divergent hardware devices and nodes, and APIs for online services. A case study of the service broker implemented for control of municipal systems in urban environment is presented and discussed in this work.