Hands-On Internet of Things with MQTT

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

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.

MQTT Essentials - A Lightweight IoT Protocol

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

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

Hands-On MQTT Programming with Python

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

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.

Hands-On Industrial Internet of Things

Hands-On Industrial Internet of Things
Author: Giacomo Veneri
Publisher: Packt Publishing Ltd
Total Pages: 546
Release: 2018-11-29
Genre: Computers
ISBN: 1789538300

Build a strong and efficient IoT infrastructure at industrial and enterprise level by mastering Industrial IoT network Key FeaturesGain hands-on experience working with industrial architectureExplore the potential of cloud-based Industrial IoT platforms, analytics, and protocolsImprove business models and transform your workforce with Industry 4.0Book Description We live in an era where advanced automation is used to achieve accurate results. To set up an automation environment, you need to first configure a network that can be accessed anywhere and by any device. This book is a practical guide that helps you discover the technologies and use cases for Industrial Internet of Things (IIOT). Hands-On Industrial Internet of Things takes you through the implementation of industrial processes and specialized control devices and protocols. You’ll study the process of identifying and connecting to different industrial data sources gathered from different sensors. Furthermore, you’ll be able to connect these sensors to cloud network, such as AWS IoT, Azure IoT, Google IoT, and OEM IoT platforms, and extract data from the cloud to your devices. As you progress through the chapters, you’ll gain hands-on experience in using open source Node-Red, Kafka, Cassandra, and Python. You will also learn how to develop streaming and batch-based Machine Learning algorithms. By the end of this book, you will have mastered the features of Industry 4.0 and be able to build stronger, faster, and more reliable IoT infrastructure in your Industry. What you will learnExplore industrial processes, devices, and protocolsDesign and implement the I-IoT network flowGather and transfer industrial data in a secure wayGet to grips with popular cloud-based platformsUnderstand diagnostic analytics to answer critical workforce questionsDiscover the Edge device and understand Edge and Fog computingImplement equipment and process management to achieve business-specific goalsWho this book is for If you’re an IoT architect, developer, or stakeholder working with architectural aspects of Industrial Internet of Things, this book is for you.

Practical Python Programming for IoT

Practical Python Programming for IoT
Author: Gary Smart
Publisher: Packt Publishing Ltd
Total Pages: 500
Release: 2020-11-12
Genre: Computers
ISBN: 1838982833

Leverage Python and Raspberry Pi to create complex IoT applications capable of creating and detecting movement and measuring distance, light, and a host of other environmental conditions Key FeaturesLearn the fundamentals of electronics and how to integrate them with a Raspberry PiUnderstand how to build RESTful APIs, WebSocket APIs, and MQTT-based applicationsExplore alternative approaches to structuring IoT applications with PythonBook Description The age of connected devices is here, be it fitness bands or smart homes. It's now more important than ever to understand how hardware components interact with the internet to collect and analyze user data. The Internet of Things (IoT), combined with the popular open source language Python, can be used to build powerful and intelligent IoT systems with intuitive interfaces. This book consists of three parts, with the first focusing on the "Internet" component of IoT. You'll get to grips with end-to-end IoT app development to control an LED over the internet, before learning how to build RESTful APIs, WebSocket APIs, and MQTT services in Python. The second part delves into the fundamentals behind electronics and GPIO interfacing. As you progress to the last part, you'll focus on the "Things" aspect of IoT, where you will learn how to connect and control a range of electronic sensors and actuators using Python. You'll also explore a variety of topics, such as motor control, ultrasonic sensors, and temperature measurement. Finally, you'll get up to speed with advanced IoT programming techniques in Python, integrate with IoT visualization and automation platforms, and build a comprehensive IoT project. By the end of this book, you'll be well-versed with IoT development and have the knowledge you need to build sophisticated IoT systems using Python. What you will learnUnderstand electronic interfacing with Raspberry Pi from scratchGain knowledge of building sensor and actuator electronic circuitsStructure your code in Python using Async IO, pub/sub models, and moreAutomate real-world IoT projects using sensor and actuator integrationIntegrate electronics with ThingSpeak and IFTTT to enable automationBuild and use RESTful APIs, WebSockets, and MQTT with sensors and actuatorsSet up a Raspberry Pi and Python development environment for IoT projectsWho this book is for This IoT Python book is for application developers, IoT professionals, or anyone interested in building IoT applications using the Python programming language. It will also be particularly helpful for mid to senior-level software engineers who are experienced in desktop, web, and mobile development, but have little to no experience of electronics, physical computing, and IoT.

The Smarthome Book

The Smarthome Book
Author: Andrew Howe
Publisher: Andrew Howe
Total Pages: 114
Release:
Genre: Computers
ISBN:

Technology is playing an increasingly more important part in our homes as well as our day to day lives. Get this simple to read guide to be introduced to structured wiring and smarthome concepts. It will not only take you through the requirements necessary to implement these upgrades but also provide a long list of inspirational and useful ideas to help make your smarthome upgrade not only a reality but fun! Through the chapters of this book we cover the various topics and components which will provide an insight into upgrading your home and making it smart. Considering a renovation or a new build? Then look no further, as this will detail the basics of home cinema, whole house audio and video systems, security with remote monitoring, energy efficiency and how best to set up your data network, all wrapped up in an easy to read format, with easily laid out diagrams and a glossary of terms and links at the end to further your quest. Consider how long people spend deciding what flooring to lay down or what tiles to place in the kitchen or bathroom. Now consider how long people spend on what type of cabling will allow them to have that cool minimalist look in their renovation! Those hidden wires, the intelligent lighting, the surround sound, the energy efficient heating. Read this book before speaking to your electrician or installer. Save yourself time and money by being prepared.

Practical IoT Hacking

Practical IoT Hacking
Author: Fotios Chantzis
Publisher: No Starch Press
Total Pages: 466
Release: 2021-03-23
Genre: Computers
ISBN: 1718500912

The definitive guide to hacking the world of the Internet of Things (IoT) -- Internet connected devices such as medical devices, home assistants, smart home appliances and more. Drawing from the real-life exploits of five highly regarded IoT security researchers, Practical IoT Hacking teaches you how to test IoT systems, devices, and protocols to mitigate risk. The book begins by walking you through common threats and a threat modeling framework. You’ll develop a security testing methodology, discover the art of passive reconnaissance, and assess security on all layers of an IoT system. Next, you’ll perform VLAN hopping, crack MQTT authentication, abuse UPnP, develop an mDNS poisoner, and craft WS-Discovery attacks. You’ll tackle both hardware hacking and radio hacking, with in-depth coverage of attacks against embedded IoT devices and RFID systems. You’ll also learn how to: • Write a DICOM service scanner as an NSE module • Hack a microcontroller through the UART and SWD interfaces • Reverse engineer firmware and analyze mobile companion apps • Develop an NFC fuzzer using Proxmark3 • Hack a smart home by jamming wireless alarms, playing back IP camera feeds, and controlling a smart treadmill The tools and devices you’ll use are affordable and readily available, so you can easily practice what you learn. Whether you’re a security researcher, IT team member, or hacking hobbyist, you’ll find Practical IoT Hacking indispensable in your efforts to hack all the things REQUIREMENTS: Basic knowledge of Linux command line, TCP/IP, and programming

Building the Web of Things

Building the Web of Things
Author: Dominique Dom Guinard
Publisher: Simon and Schuster
Total Pages: 520
Release: 2016-06-06
Genre: Computers
ISBN: 1638357099

Summary A hands-on guide that will teach how to design and implement scalable, flexible, and open IoT solutions using web technologies. This book focuses on providing the right balance of theory, code samples, and practical examples to enable you to successfully connect all sorts of devices to the web and to expose their services and data over REST APIs. Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications. About the Technology Because the Internet of Things is still new, there is no universal application protocol. Fortunately, the IoT can take advantage of the web, where IoT protocols connect applications thanks to universal and open APIs. About the Book Building the Web of Things is a guide to using cutting-edge web technologies to build the IoT. This step-by-step book teaches you how to use web protocols to connect real-world devices to the web, including the Semantic and Social Webs. Along the way you'll gain vital concepts as you follow instructions for making Web of Things devices. By the end, you'll have the practical skills you need to implement your own web-connected products and services. What's Inside Introduction to IoT protocols and devices Connect electronic actuators and sensors (GPIO) to a Raspberry Pi Implement standard REST and Pub/Sub APIs with Node.js on embedded systems Learn about IoT protocols like MQTT and CoAP and integrate them to the Web of Things Use the Semantic Web (JSON-LD, RDFa, etc.) to discover and find Web Things Share Things via Social Networks to create the Social Web of Things Build a web-based smart home with HTTP and WebSocket Compose physical mashups with EVRYTHNG, Node-RED, and IFTTT About the Reader For both seasoned programmers and those with only basic programming skills. About the Authors Dominique Guinard and Vlad Trifa pioneered the Web of Things and cofounded EVRYTHNG, a large-scale IoT cloud powering billions of Web Things. Table of Contents PART 1 BASICS OF THE IOT AND THE WOT From the Internet of Things to the Web of Things Hello, World Wide Web of Things Node.js for the Web of Things Getting started with embedded systems Building networks of Things PART 2 BUILDING THE WOT Access: Web APIs for Things Implementing Web Things Find: Describe and discover Web Things Share: Securing and sharing Web Things

Internet of Things: A Hands-On Approach

Internet of Things: A Hands-On Approach
Author: Arshdeep Bahga
Publisher: VPT
Total Pages: 445
Release: 2014-08-09
Genre: Computers
ISBN: 0996025510

Internet of Things (IoT) refers to physical and virtual objects that have unique identities and are connected to the internet to facilitate intelligent applications that make energy, logistics, industrial control, retail, agriculture and many other domains "smarter". Internet of Things is a new revolution of the Internet that is rapidly gathering momentum driven by the advancements in sensor networks, mobile devices, wireless communications, networking and cloud technologies. Experts forecast that by the year 2020 there will be a total of 50 billion devices/things connected to the internet. This book is written as a textbook on Internet of Things for educational programs at colleges and universities, and also for IoT vendors and service providers who may be interested in offering a broader perspective of Internet of Things to accompany their own customer and developer training programs. The typical reader is expected to have completed a couple of courses in programming using traditional high-level languages at the college-level, and is either a senior or a beginning graduate student in one of the science, technology, engineering or mathematics (STEM) fields. Like our companion book on Cloud Computing, we have tried to write a comprehensive book that transfers knowledge through an immersive "hands on" approach, where the reader is provided the necessary guidance and knowledge to develop working code for real-world IoT applications. Additional support is available at the book's website: www.internet-of-things-book.com Organization The book is organized into 3 main parts, comprising of a total of 11 chapters. Part I covers the building blocks of Internet of Things (IoTs) and their characteristics. A taxonomy of IoT systems is proposed comprising of various IoT levels with increasing levels of complexity. Domain specific Internet of Things and their real-world applications are described. A generic design methodology for IoT is proposed. An IoT system management approach using NETCONF-YANG is described. Part II introduces the reader to the programming aspects of Internet of Things with a view towards rapid prototyping of complex IoT applications. We chose Python as the primary programming language for this book, and an introduction to Python is also included within the text to bring readers to a common level of expertise. We describe packages, frameworks and cloud services including the WAMP-AutoBahn, Xively cloud and Amazon Web Services which can be used for developing IoT systems. We chose the Raspberry Pi device for the examples in this book. Reference architectures for different levels of IoT applications are examined in detail. Case studies with complete source code for various IoT domains including home automation, smart environment, smart cities, logistics, retail, smart energy, smart agriculture, industrial control and smart health, are described. Part III introduces the reader to advanced topics on IoT including IoT data analytics and Tools for IoT. Case studies on collecting and analyzing data generated by Internet of Things in the cloud are described.

Building Real-time Mobile Solutions with MQTT and IBM MessageSight

Building Real-time Mobile Solutions with MQTT and IBM MessageSight
Author: Bryan Boyd
Publisher: IBM Redbooks
Total Pages: 268
Release: 2014-12-05
Genre: Computers
ISBN: 0738440051

MQTT is a messaging protocol designed for the Internet of Things (IoT). It is lightweight enough to be supported by the smallest devices, yet robust enough to ensure that important messages get to their destinations every time. With MQTT devices, such as energy meters, cars, trains, mobile phones and tablets, and personal health care devices, devices can communicate with each other and with other systems or applications. IBM® MessageSight is a messaging appliance designed to handle the scale and security of a robust IoT solution. MessageSight allows you to easily secure connections, configure policies for messaging, and scale to up to a million concurrently connected devices. This IBM Redbooks® publication introduces MQTT and MessageSight through a simple key fob remote MQTT application. It then dives into the architecture and development of a robust, cross-platform Ride Share and Taxi solution (PickMeUp) with real-time voice, GPS location sharing, and chat among a variety of mobile platforms. The publication also includes an addendum describing use cases in a variety of other domains, with sample messaging topology and suggestions for design.