The previous section guided you through installing and testing the Paho Python MQTT software. The next step is to make sure your MQTT broker is set up, and ready to receive and send messages. To complete the examples in this guide, choose one of the following options for the location of your MQTT broker:
To setup your Gateway, you will:
With your Development Computer and Gateway configured for MQTT and your MQTT broker set up, you are ready to create and run a Python script to publish MQTT messages.
These steps use Paho Python examples to create an initial script that you can later modify to meet your needs. Create the Python script either directly on your Gateway or on your Development Computer. If you create the script on your Development Computer, copy it to your Gateway to run it.
Congratulations! Using the Python programming language, you sent an MQTT message (Hello) from the Gateway, through the topic (mytopic) on the MQTT broker (localhost), and then to a Development Computer that subscribed to that MQTT topic. (mytopic)
Consider the following ideas to enhance the use of MQTT messages in your environment:
By using this document, in addition to any agreements you have with Intel, you accept the terms set forth below.
I want to share this picture with you
I have a system with the following configuration:
- Xeon Phi 31s1p (57 cores, 8Gb RAM) with MPSS 3.6 installed;
- Intel I7 3820 @3.6GHz;
- Asus P9X79WS (BIOS version 4802 - the most recent);
- 8Gb RAM;
- Sapphire Radeon HD 7990 video card
The operating system is Windows 10 x64.