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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.