MQTT Essentials - A Lightweight IoT Protocol.
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-w...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham :
Packt Publishing,
2017.
|
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- Cover; Copyright; Credits; About the Author; Acknowledgment; About the Reviewer; www.PacktPub.com; Customer Feedback; Table of Contents; Preface; Chapter 1: Lightweight Messaging with MQTT 3.1.1 and Mosquitto; Understanding convenient scenarios for the MQTT protocol; Working with the publish-subscribe pattern; Working with message filtering; Understanding the MQTT puzzle
- clients, servers, and connections; Installing a Mosquitto broker on Ubuntu Linux; Installing a Mosquitto broker on macOS; Installing a Mosquitto broker on Windows; Subscribing to topics; Publishing messages.
- Unsubscribing from topicsWorking with best practices when creating topics; Understanding wildcards; Learning about the different Quality of Service levels; Working with at least once delivery; Working with exactly once delivery; Test your knowledge; Summary; Chapter 2: Securing an MQTT Mosquitto Server; Securing a Mosquitto server; Generating a private certificate authority to use TLS with Mosquitto; Creating a certificate for the Mosquitto server; Configuring TLS transport security in Mosquitto; Testing the MQTT TLS configuration with MQTT.fx; Testing the MQTT TLS configuration with MQTT-spy.
- Creating a certificate for each MQTT clientConfiguring TLS client certificate authentication in Mosquitto; Testing the MQTT TLS client authentication with MQTT.fx; Testing the MQTT TLS configuration with MQTT-spy; Forcing the TLS protocol version; Test your knowledge; Summary; Chapter 3: Controlling a Drone with Python; Understanding the requirements to control a drone with MQTT; Defining the topics and commands; Installing paho-mqtt for Python; Connecting the client to the MQTT server with Python; Understanding callbacks; Subscribing to topics with Python.
- Creating a class to represent a droneReceiving messages with Python; Processing commands with Python; Sending messages with Python; Working with the network loop with Python; Test your knowledge; Summary; Chapter 4: Interacting with Sensors in Java; Understanding the requirements; Defining the topics and commands; Installing the Eclipse Paho Java Client; Creating a security helper class to establish a TLS secured connection; Configuring a TLS secured connection in Java; Working with asynchronous notifications and callbacks in Java.
- Subscribing to topics and understanding notification events in JavaProcessing commands that interact with sensors in Java; Working with last will and testament in Java; Publishing messages with commands to target sensors; Test your knowledge; Summary; Chapter 5: Controlling Home Automation in JavaScript; Understanding the requirements; Defining the topics and commands to control home automation; Enabling WebSockets for a Mosquitto server; Testing WebSockets with the Eclipse Paho client JavaScript utility; Understanding the Eclipse Paho JavaScript asynchronous client.