Raspberry Pi and MQTT Essentials

Raspberry Pi and MQTT Essentials
Title Raspberry Pi and MQTT Essentials PDF eBook
Author Dhairya Parikh
Publisher Packt Publishing Ltd
Pages 272
Release 2022-09-16
Genre Computers
ISBN 1803238399

Download Raspberry Pi and MQTT Essentials Book in PDF, Epub and Kindle

Get familiar with all the concepts related to Raspberry Pi and MQTT, build innovative IoT projects, and discover how to scale these projects to the next level Key FeaturesLearn some of the most popular tools used in IoT – Raspberry Pi, MQTT, ESP8266 and moreBuild exciting projects such as an IoT weather station and a smart switch boardDiscover the advantages of taking your MQTT broker globalBook Description The future of IoT has the potential to be limitless. Wouldn't it be great if you could add it to your own technological stacks? But where to start? With the basics, of course. In this book, you will start by learning about the most popular hardware and communication protocol, Raspberry Pi and MQTT. You will see how to use them together by setting up your own MQTT server on Raspberry Pi and understand how it works. This book explores MQTT in detail, including the clients and devices that you can connect to your server. You will discover two very popular IoT development boards among project developers: the ESP8266 and ESP32 development boards. Then, you will learn how to build interactive dashboards on your Pi and monitor your client devices. The book also shows you how to build a dashboard using another popular software – Node-RED. You will be able to put your skills to the test by creating two full-scale projects. That's not all: you will also learn how to host your own MQTT server on a virtual cloud service. Finally, you will be guided on how to move forward from here, what technologies to learn, and some project recommendations to polish or test your knowledge. By the end of this book, you will be able to build meaningful projects using Raspberry Pi and MQTT and create dashboards for your projects on Node-RED. What you will learnConfigure and use a Raspberry Pi for IoT projectsImplement the MQTT communication protocol for projectsUnderstand how to set up the NodeMCU and ESP32 boards as MQTT clientsControl a NodeMCU board through a Node-RED dashboard hosted on Raspberry PiGet LAMP server, Home Assistant, and MariaDB on the Raspberry PiSet up an online MQTT broker on a cloud service or enterprise service provider platformBuild full-scale, end-to-end prototype projectsWho this book is for This book is for students who are interested in IoT and want to build projects using the available developer hardware. Educators who want to introduce a course on IoT into their curriculum, technology enthusiasts, and IoT developers who are just getting started will also benefit from this book. No prior knowledge about the two main topics that the book covers is required - Raspberry Pi and MQTT. A basic understanding of what IoT is will also be useful but not mandatory.

MQTT Essentials - A Lightweight IoT Protocol

MQTT Essentials - A Lightweight IoT Protocol
Title MQTT Essentials - A Lightweight IoT Protocol PDF eBook
Author Gastón C. Hillar
Publisher Packt Publishing Ltd
Pages 273
Release 2017-04-14
Genre Computers
ISBN 1787285146

Download MQTT Essentials - A Lightweight IoT Protocol Book in PDF, Epub and Kindle

Send and receive messages with the MQTT protocol for your IoT solutions. About This Book Make your connected devices less prone to attackers by understanding practical security mechanisms Dive deep into one of IoT's extremely lightweight machines to enable connectivity protocol with some real-world examples Learn to take advantage of the features included in MQTT for IoT and Machine-to-Machine communications with complete real-life examples Who This Book Is For This book is a great resource for developers who want to learn more about the MQTT protocol to apply it to their individual IoT projects. Prior knowledge of working with IoT devices is essential. What You Will Learn Understand how MQTTv3.1 and v3.1.1 works in detail Install and secure a Mosquitto MQTT broker by following best practices Design and develop IoT solutions combined with mobile and web apps that use MQTT messages to communicate Explore the features included in MQTT for IoT and Machine-to-Machine communications Publish and receive MQTT messages with Python, Java, Swift, JavaScript, and Node.js Implement the security best practices while setting up the MQTT Mosquitto broker In Detail This step-by-step guide will help you gain a deep understanding of the lightweight MQTT protocol. We'll begin with the specific vocabulary of MQTT and its working modes, followed by installing a Mosquitto MQTT broker. Then, you will use best practices to secure the MQTT Mosquitto broker to ensure that only authorized clients are able to publish and receive messages. Once you have secured the broker with the appropriate configuration, you will develop a solution that controls a drone with Python. Further on, you will use Python on a Raspberry Pi 3 board to process commands and Python on Intel Boards (Joule, Edison and Galileo). You will then connect to the MQTT broker, subscribe to topics, send messages, and receive messages in Python. You will also develop a solution that interacts with sensors in Java by working with MQTT messages. Moving forward, you will work with an asynchronous API with callbacks to make the sensors interact with MQTT messages. Following the same process, you will develop an iOS app with Swift 3, build a website that uses WebSockets to connect to the MQTT broker, and control home automation devices with HTML5, JavaScript code, Node.js and MQTT messages Style and approach This step-by-step guide describes the MQTT protocol for your IoT projects

Raspberry Pi Server Essentials

Raspberry Pi Server Essentials
Title Raspberry Pi Server Essentials PDF eBook
Author Piotr Kula
Publisher Packt Pub Limited
Pages 116
Release 2014-02
Genre Computers
ISBN 9781783284696

Download Raspberry Pi Server Essentials Book in PDF, Epub and Kindle

This is an engaging, easy to follow guide for developing a wide range of server projects with Raspberry PiThis book is targeted towards all Raspberry Pi enthusiasts who are interested in exploring the potential of Pi as a server. Even if you have no prior experience with the Raspberry Pi, you can pick up this book and develop a wide range of projects.

Raspberry Pi Essentials

Raspberry Pi Essentials
Title Raspberry Pi Essentials PDF eBook
Author Jack Creasey
Publisher Packt Publishing Ltd
Pages 212
Release 2015-04-28
Genre Computers
ISBN 1784396923

Download Raspberry Pi Essentials Book in PDF, Epub and Kindle

Programmers new to the Raspberry Pi and novice programmers with little to no experience with micro board computing will find the book useful. A basic knowledge of programming languages in general will prove useful for a better understanding of the topics.

Hands-On Internet of Things with MQTT

Hands-On Internet of Things with MQTT
Title Hands-On Internet of Things with MQTT PDF eBook
Author Tim Pulver
Publisher Packt Publishing Ltd
Pages 336
Release 2019-10-04
Genre Computers
ISBN 1789345006

Download Hands-On Internet of Things with MQTT Book in PDF, Epub and Kindle

Develop a variety of projects and connect them to microcontrollers and web servers using the lightweight messaging protocol MQTT Key FeaturesLeverage the power of MQTT to build a pet food dispenser, e-ink to-do list, and a productivity cubeLearn about technologies like laser cutting, 3D printing, and PCB production for building robust prototypesExplore practical uses cases to gain an in-depth understanding of MQTTBook Description MQ Telemetry Transport (MQTT) is a lightweight messaging protocol for smart devices that can be used to build exciting, highly scalable Internet of Things (IoT) projects. This book will get you started with a quick introduction to the concepts of IoT and MQTT and explain how the latter can help you build your own internet-connected prototypes. As you advance, you’ll gain insights into how microcontrollers communicate, and you'll get to grips with the different messaging protocols and techniques involved. Once you are well-versed with the essential concepts, you’ll be able to put what you’ve learned into practice by building three projects from scratch, including an automatic pet food dispenser and a smart e-ink to-do display. You’ll also discover how to present your own prototypes professionally. In addition to this, you'll learn how to use technologies from third-party web service providers, along with other rapid prototyping technologies, such as laser cutting, 3D printing, and PCB production. By the end of this book, you’ll have gained hands-on experience in using MQTT to build your own IoT prototypes. What you will learnExplore MQTT programming with ArduinoDiscover how to make your prototypes talk to each otherSend MQTT messages from your smartphone to your prototypesDiscover how you can make websites interact with your prototypesLearn about MQTT servers, libraries, and appsExplore tools such as laser cutting and 3D printing in order to build robust prototype casesWho this book is for If you are an IoT developer or enthusiast who wants to start building IoT prototypes using MQTT, this book is for you. Basic knowledge of programming with Arduino will be useful.

Hands-On MQTT Programming with Python

Hands-On MQTT Programming with Python
Title Hands-On MQTT Programming with Python PDF eBook
Author Gaston C. Hillar
Publisher Packt Publishing Ltd
Pages 220
Release 2018-05-22
Genre Computers
ISBN 1789137810

Download Hands-On MQTT Programming with Python Book in PDF, Epub and Kindle

Explore the features included in the latest versions of MQTT for IoT and M2M communications and use them with modern Python 3. Key Features Make your connected devices less prone to attackers by understanding security mechanisms Take advantage of MQTT features for IoT and Machine-to-Machine communications The only book that covers MQTT with a single language, Python Book Description MQTT is a lightweight messaging protocol for small sensors and mobile devices. This book explores the features of the latest versions of MQTT for IoT and M2M communications, how to use them with Python 3, and allow you to interact with sensors and actuators using Python. The book begins with the specific vocabulary of MQTT and its working modes, followed by installing a Mosquitto MQTT broker. You will use different utilities and diagrams to understand the most important concepts related to MQTT. You will learn to make all the necessary configuration to work with digital certificates for encrypting all data sent between the MQTT clients and the server. You will also work with the different Quality of Service levels and later analyze and compare their overheads. You will write Python 3.x code to control a vehicle with MQTT messages delivered through encrypted connections (TLS 1.2), and learn how leverage your knowledge of the MQTT protocol to build a solution based on requirements. Towards the end, you will write Python code to use the PubNub cloud-based real-time MQTT provider to monitor a surfing competition. In the end, you will have a solution that was built from scratch by analyzing the requirements and then write Python code that will run on water-proof IoT boards connected to multiple sensors in surfboards. What you will learn Learn how MQTT and its lightweight messaging system work Understand the MQTT puzzle: clients, servers (formerly known as brokers), and connections Explore the features included in the latest versions of MQTT for IoT and M2M communications Publish and receive MQTT messages with Python Learn the difference between blocking and threaded network loops Take advantage of the last will and testament feature Work with cloud-based MQTT interfaces in Python Who this book is for This book is for developers who want to learn about the MQTT protocol for their IoT projects. Prior knowledge of working with IoT and Python will be helpful.

Practical Node-RED Programming

Practical Node-RED Programming
Title Practical Node-RED Programming PDF eBook
Author Taiji Hagino
Publisher Packt Publishing Ltd
Pages 326
Release 2021-03-22
Genre Computers
ISBN 1800207662

Download Practical Node-RED Programming Book in PDF, Epub and Kindle

Use a low-code programming approach to create event-driven applications from scratch by wiring together hardware devices, APIs, and online services Key FeaturesDiscover how you can automate the Internet of Things (IoT) without writing huge blocks of codeLearn how to wire together flows using a browser-based visual editorHandle IoT data with little to no coding knowledgeBook Description Node-RED is a free and open source flow-based programming tool used to handle IoT data that allows programmers of any level to interconnect physical I/O, cloud-based systems, databases, and APIs to build web applications without code. Practical Node-RED Programming is a comprehensive introduction for anyone looking to get up to speed with the Node-RED ecosystem in no time. Complete with hands-on tutorials, projects, and self-assessment questions, this easy-to-follow guide will help you to become well versed in the foundations of Node-RED. You’ll learn how to use Node-RED to handle IoT data and build web applications without having to write complex code. Once you’ve covered the basics, you’ll explore various visual programming techniques and find out how to make sample flows as you cover web development, IoT development, and cloud service connections, and finally build useful real-world applications. By the end of this book, you’ll have learned how to use Node-RED to develop a real-world application from scratch, which can then be implemented in your business. What you will learnUnderstand the history of Node-RED and why you need to learn a flow-based programming toolUse Node-RED to build Node.js-based applicationsHandle data for IoT devices using Node-RED flowsExplore advanced Node-RED features such as connecting repositories and customizing the flow editorFind out what the MQTT protocol is and how it relates to Node-REDCreate and publish your own nodes and flows using the Node-RED libraryWho this book is for This Node-RED book is for web developers and IoT engineers with some background in JavaScript and Node.js. Although not necessary, familiarity with the concepts of electronics will help you to make the most out of this book.