Step1 : setup MQTT integration
- Click on Pilot Things Integrations menu
- Click on : New Forward target
- Select your target : MQTT
Common parameters section
- Enter Name and a short description.
- Click on enabled
See example hereunder:
Specific parameters section
- URL : To enter a correct URL, you need to respect this syntax : protocol://<hostname>:<port>
- In the example hereunder, the protocol part is tcp://
- The hostname part is m11.cloudmqtt.com
- The port part is :17380
- Topic : this is the name of your MQTT topic
- Client ID : You must fill a client ID, this ID must be unique on the server side
- Username and Password : if authentication is mandatory on the server, fill username and password
Message format section
By selecting message,thing or product you modify the message thus the messages send to MQTT server.
Integration final validation
Click on Test connection and save.
The integration is done.
How to stop sending messages?
When you create an integration, Pilot Things creates automatically a scenario which sents all messages to MQTT server.
If you want to disable the scenario you can uncheck enable in the scenario menu.
If you want to stop sending messages you must uncheck enable in the scenario menu.
Step2 : Use case with CloudMQTT
Account
First step is to create an account on https://customer.cloudmqtt.com/login
Instance
Then you need to create a new instance, click on create a new instance and guive a name of instance.
Instance info
In the menu details, you can find all informations which you need to etablish the connection.
Messages
In the menu Websocket UI, you can see messages sends.
Step3 :Additional informations
MQTT : https://www.hivemq.com/blog/how-to-get-started-with-mqtt
Comments
0 comments
Please sign in to leave a comment.