An example implementation of MQTT publisher, subscriber for an hypothetical smart city.
Please see the detailed blog about this code from below:
https://medium.com/@onur.dundar1/mqtt-part-i-understanding-mqtt-aade455baec9
https://medium.com/@onur.dundar1/mqtt-part-ii-smart-city-design-over-mqtt-da41018a45c2