Skip to Content
Internet of Things with Raspberry Pi 3
book

Internet of Things with Raspberry Pi 3

by Maneesh Rao
April 2018
Intermediate to advanced
248 pages
5h 31m
English
Packt Publishing
Content preview from Internet of Things with Raspberry Pi 3

MQTT topics

As discussed earlier, a topic is routing information, which is used by the client for publishing and subscribing to messages. Topics are represented by strings and can have one or more levels. Each topic level is separated by a forward slash (/). A topic is created as soon as a client sends data on it, so it is not necessary to create the topic explicitly. Let's understand it with an example. Consider Figure 3.9. We have two Air Conditioners (ACs) at home; one is in the dining room and the other is in the bedroom:

Figure 3.9

Both the ACs are connected to the broker and we have a mobile application that communicates to the AC using ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Raspberry Pi

Learning Raspberry Pi

Samarth Shah, Serge Schneider
Raspberry Pi 3 Home Automation Projects

Raspberry Pi 3 Home Automation Projects

Shantanu Bhadoria, Ruben Oliva Ramos

Publisher Resources

ISBN: 9781788627405Supplemental Content