Hands-On MQTT programming with python work with the lightweight IoT protocol in python

Explore the features included in the latest versions of MQTT for IoT and M2M communications and use them with modern Python 3. About This Book Make your connected devices less prone to attackers by understanding security mechanisms Take advantage of MQTT features for IoT and Machine-to-Machine commu...

Descripción completa

Detalles Bibliográficos
Otros Autores: Hillar, Gaston C., author (author)
Formato: Libro electrónico
Idioma:Inglés
Publicado: Birmingham ; Mumbai : Packt Publishing 2018.
Edición:1st edition
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009630754006719
Tabla de Contenidos:
  • Cover
  • Title Page
  • Copyright and Credits
  • Packt Upsell
  • About the Author
  • Table of Contents
  • Preface
  • Chapter 1: Installing an MQTT 3.1.1 Mosquitto Server
  • 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 server on Linux
  • Installing a Mosquitto server on macOS
  • Installing a Mosquitto server on Windows
  • Considerations for running a Mosquitto server in the cloud
  • Test your knowledge
  • Summary
  • Chapter 2: Using Command-Line and GUI Tools to Learn How MQTT Works
  • Subscribing to topics with a command-line tool
  • Subscribing to topics with a GUI tool
  • Publishing messages with a command-line tool
  • Publishing messages with a GUI tool
  • Unsubscribing from topics with a GUI tool
  • Learning best practices for topics
  • Understanding MQTT wildcards
  • Learning about the different QoS levels
  • Working with at least once delivery (QoS level 1)
  • Working with exactly once delivery (QoS level 2)
  • Understanding overhead in the different Quality of Service levels
  • Test your knowledge
  • Summary
  • Chapter 3: Securing an MQTT 3.1.1 Mosquitto Server
  • Understanding the importance of 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 command-line tools
  • Testing the MQTT TLS configuration with GUI tools
  • Creating a certificate for each MQTT client
  • Configuring TLS client certificate authentication in Mosquitto
  • Testing the MQTT TLS client authentication with command-line tools
  • Testing the MQTT TLS configuration with GUI tools.
  • Forcing the TLS protocol version to a specific number
  • Test your knowledge
  • Summary
  • Chapter 4: Writing Code to Control a Vehicle with Python and MQTT Messages
  • Understanding the requirements to control a vehicle with MQTT
  • Defining the topics and commands
  • Creating a virtual environment with Python 3.6.x and PEP 405
  • Understanding the directory structure for a virtual environment
  • Activating the virtual environment
  • Deactivating the virtual environment
  • Installing paho-mqtt for Python
  • Connecting a client to the secured MQTT server with paho-mqtt
  • Understanding callbacks
  • Subscribing to topics with Python
  • Configuring certificates for IoT boards that will work as clients
  • Creating a class to represent a vehicle
  • Receiving messages in Python
  • Working with multiple calls to the loop method
  • Test your knowledge
  • Summary
  • Chapter 5: Testing and Improving Our Vehicle Control Solution in Python
  • Processing commands with Python
  • Sending messages with Python
  • Working with the network loop with Python
  • Working with last will and testament with Python
  • Working with retained last will messages
  • Understanding blocking and non-blocking code
  • Using the threaded client interface
  • Test your knowledge
  • Summary
  • Chapter 6: Monitoring a Surfing Competition with Cloud-Based Real-Time MQTT Providers and Python
  • Understanding the requirements
  • Defining the topics and payloads
  • Coding a surfboard sensor emulator
  • Configuring the PubNub MQTT interface
  • Publishing data retrieved from sensors to the cloud-based MQTT server
  • Working with multiple MQTT servers
  • Running multiple clients
  • Building a web-based dashboard with freeboard
  • Test your knowledge
  • Summary
  • Solutions
  • Chapter 1: Installing an MQTT 3.1.1 Mosquitto server
  • Chapter 2: Using Command-Line and GUI Tools to Learn How MQTT Works.
  • Chapter 3: Securing an MQTT 3.1.1 Mosquitto Server
  • Chapter 4: Writing Code to Control a Vehicle with Python and MQTT Messages
  • Chapter 5: Testing and Improving our Vehicle Control Solution in Python
  • Chapter 6:  Monitoring a Surfing Competition with Cloud-Based Real-Time MQTT Providers and Python
  • Other Books You May Enjoy
  • Index.