Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Raspberry Pi and MQTT Essentials

You're reading from   Raspberry Pi and MQTT Essentials A complete guide to helping you build innovative full-scale prototype projects using Raspberry Pi and MQTT protocol

Arrow left icon
Product type Paperback
Published in Sep 2022
Publisher Packt
ISBN-13 9781803244488
Length 272 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Dhairya Parikh Dhairya Parikh
Author Profile Icon Dhairya Parikh
Dhairya Parikh
Arrow right icon
View More author details
Toc

Table of Contents (14) Chapters Close

Preface 1. Part 1:Covering the Basics
2. Chapter 1: Introduction to Raspberry Pi and MQTT FREE CHAPTER 3. Chapter 2: MQTT in Detail 4. Chapter 3: Introduction to ESP Development Boards 5. Chapter 4: Node-RED on Raspberry Pi 6. Part 2: Practical Implementation – Building Two Full-Scale Projects
7. Chapter 5: Major Project 1: IoT Weather Station 8. Chapter 6: Major Project 2: Smart Home Control Relay System 9. Part 3: How to Take Things Further – What Next?
10. Chapter 7: Taking Your MQTT Broker Global 11. Chapter 8: Project Prototype to Product – How? 12. Index 13. Other Books You May Enjoy

What this book covers

Chapter 1, Introduction to Raspberry PI and MQTT, provides an introduction to the hardware we will be using, the Raspberry Pi. Moreover, it will also cover the basics of MQTT and how the communication protocol actually works. Next, we will learn to set up the Raspberry Pi. This includes installing the popular Debian-based Raspberry Pi OS on our Raspberry Pi. After that, we will install the necessary libraries and packages to make our device a local MQTT broker.

Chapter 2, MQTT in Detail, covers how exactly MQTT works. This includes a gentle introduction to MQTT brokers and clients, and different MQTT control packets will be covered in detail. Finally, we will see a demonstration of how a client connects and communicates with a broker.

Chapter 3, Introduction to ESP Development Boards, is all about implementing what we learned in the previous chapter. It will first introduce you to the popular ESP development boards – NodeMCU and ESP32. After covering the specifications of each board, we will move on to learn how to set up the boards as an MQTT client. Finally, we will create our first project wherein we will connect to our Raspberry Pi’s MQTT broker and control the onboard LED through MQTT.

Chapter 4, Node-RED on Raspberry Pi, gets you acquainted with very popular software for the Raspberry Pi – Node-RED. It is divided into four sections. First is an introduction to Node-RED, followed by a guide to installing and setting up Node-RED on Raspberry Pi. After that, we will cover the Node-RED MQTT and dashboard components, and then create a simple project to implement everything we have learned.

Chapter 5, Major Project 1: IoT Weather Station, is where, now that we have the knowledge from all the topics discussed in the previous chapters, we will be working on our first major project: making an IoT weather station. This chapter provides step-by-step instructions on how to build this.

Chapter 6, Major Project 2: Smart Home Control Relay System, helps you create a smart home device to control wall switches using the Node-RED dashboard hosted on the Raspberry Pi. The device will be based on the popular ESP32 development board. For this project, we will be preparing a PCB instead of creating the circuit on a breadboard for a more finished and professional look.

Chapter 7, Taking Your MQTT Broker Global, is where we will discuss the advantages of having an online MQTT broker further, and two major options that we currently have to achieve these advantages. We can still use the local broker on our Pi, but we can route all the data to any destination through the internet.

Chapter 8, Project Prototype to Product, How?, starts by exploring IoT services provided by some popular cloud services, such as AWS and GCP, now that the book has covered all the essentials required to get you familiar with all the concepts related to Raspberry Pi and MQTT. We will even create a project demo integrating our Node MCU board with AWS IoT.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image