Problem 2 – code changes

MQTT makes code changes easier to scale. When using MQTT, there is always a centralized MQTT server, which keeps track of all of the clients, messages, and subscriptions. To add another device to our network, we don't have to modify the code of the other devices in order to receive information from them. It is best to understand this principle by thinking about communication between humans. If you have some information that you want to pass on to multiple people, there are two ways to let them know about it. The first way, which can be compared to traditional infrastructure on the web, is one-to-one communication. You let each of them know individually about what you have to say. The other way is letting them know ...

Get Hands-On Internet of Things with MQTT now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.