舉報

會員
Hands-On MQTT Programming with Python
ThisbookisfordeveloperswhowanttolearnabouttheMQTTprotocolfortheirIoTprojects.PriorknowledgeofworkingwithIoTandPythonwillbehelpful.
最新章節
- Leave a review - let other readers know what you think
- Other Books You May Enjoy
- Chapter 6: Monitoring a Surfing Competition with Cloud-Based Real-Time MQTT Providers and Python
- Chapter 5: Testing and Improving our Vehicle Control Solution in Python
- Chapter 4: Writing Code to Control a Vehicle with Python and MQTT Messages
- Chapter 3: Securing an MQTT 3.1.1 Mosquitto Server
品牌:中圖公司
上架時間:2021-06-25 21:01:59
出版社:Packt Publishing
本書數字版權由中圖公司提供,并由其授權上海閱文信息技術有限公司制作發行
- Leave a review - let other readers know what you think 更新時間:2021-06-25 22:02:28
- Other Books You May Enjoy
- Chapter 6: Monitoring a Surfing Competition with Cloud-Based Real-Time MQTT Providers and Python
- Chapter 5: Testing and Improving our Vehicle Control Solution in Python
- Chapter 4: Writing Code to Control a Vehicle with Python and MQTT Messages
- Chapter 3: Securing an MQTT 3.1.1 Mosquitto Server
- Chapter 2: Using Command-Line and GUI Tools to Learn How MQTT Works
- Chapter 1: Installing an MQTT 3.1.1 Mosquitto server
- Solutions
- Summary
- Test your knowledge
- Building a web-based dashboard with freeboard
- Running multiple clients
- Working with multiple MQTT servers
- Publishing data retrieved from sensors to the cloud-based MQTT server
- Configuring the PubNub MQTT interface
- Coding a surfboard sensor emulator
- Defining the topics and payloads
- Understanding the requirements
- Monitoring a Surfing Competition with Cloud-Based Real-Time MQTT Providers and Python
- Summary
- Test your knowledge
- Using the threaded client interface
- Understanding blocking and non-blocking code
- Working with retained last will messages
- Working with last will and testament with Python
- Working with the network loop with Python
- Sending messages with Python
- Processing commands with Python
- Testing and Improving Our Vehicle Control Solution in Python
- Summary
- Test your knowledge
- Working with multiple calls to the loop method
- Receiving messages in Python
- Creating a class to represent a vehicle
- Configuring certificates for IoT boards that will work as clients
- Subscribing to topics with Python
- Understanding callbacks
- Connecting a client to the secured MQTT server with paho-mqtt
- Installing paho-mqtt for Python
- Deactivating the virtual environment
- Activating the virtual environment
- Understanding the directory structure for a virtual environment
- Creating a virtual environment with Python 3.6.x and PEP 405
- Defining the topics and commands
- Understanding the requirements to control a vehicle with MQTT
- Writing Code to Control a Vehicle with Python and MQTT Messages
- Summary
- Test your knowledge
- Forcing the TLS protocol version to a specific number
- Testing the MQTT TLS configuration with GUI tools
- Testing the MQTT TLS client authentication with command-line tools
- Configuring TLS client certificate authentication in Mosquitto
- Creating a certificate for each MQTT client
- Testing the MQTT TLS configuration with GUI tools
- Testing the MQTT TLS configuration with command-line tools
- Configuring TLS transport security in Mosquitto
- Creating a certificate for the Mosquitto server
- Generating a private certificate authority to use TLS with Mosquitto
- Understanding the importance of securing a Mosquitto server
- Securing an MQTT 3.1.1 Mosquitto Server
- Summary
- Test your knowledge
- Understanding overhead in the different Quality of Service levels
- Working with exactly once delivery (QoS level 2)
- Working with at least once delivery (QoS level 1)
- Learning about the different QoS levels
- Understanding MQTT wildcards
- Learning best practices for topics
- Unsubscribing from topics with a GUI tool
- Publishing messages with a GUI tool
- Publishing messages with a command-line tool
- Subscribing to topics with a GUI tool
- Subscribing to topics with a command-line tool
- Using Command-Line and GUI Tools to Learn How MQTT Works
- Summary
- Test your knowledge
- Considerations for running a Mosquitto server in the cloud
- Installing a Mosquitto server on Windows
- Installing a Mosquitto server on macOS
- Installing a Mosquitto server on Linux
- Understanding the MQTT puzzle – clients servers and connections
- Working with message filtering
- Working with the publish-subscribe pattern
- Understanding convenient scenarios for the MQTT protocol
- Installing an MQTT 3.1.1 Mosquitto Server
- Reviews
- Get in touch
- Conventions used
- Download the color images
- Download the example code files
- To get the most out of this book
- What this book covers
- Who this book is for
- Preface
- Packt is searching for authors like you
- About the reviewer
- About the Author
- PacktPub.com
- Why subscribe?
- Packt Upsell
- 版權信息
- 封面
- 封面
- 版權信息
- Packt Upsell
- Why subscribe?
- PacktPub.com
- About the Author
- About the reviewer
- Packt is searching for authors like you
- Preface
- Who this book is for
- What this book covers
- To get the most out of this book
- Download the example code files
- Download the color images
- Conventions used
- Get in touch
- Reviews
- 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
- 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
- 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
- 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
- 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
- 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
- Leave a review - let other readers know what you think 更新時間:2021-06-25 22:02:28