Skip to content

Latest commit

 

History

History
46 lines (40 loc) · 2.02 KB

File metadata and controls

46 lines (40 loc) · 2.02 KB
layout docwithnav-mqtt-broker
title HTTP Integration
description TBMQ HTTP integration guide
tb-endpoint-url
0
image title
/images/mqtt-broker/user-guide/ui/tb-endpoint-url-1.png
In your ThingsBoard Cloud instance navigate to the "Integrations" page and opne HTTP integration details. Then enable debug mode and copy "HTTP endpoint URL".
add-http-integration
0 1 2 3 4
image title
/images/mqtt-broker/user-guide/ui/add-http-integration-1.png
Navigate to the "Integrations" page, and click "plus" icon to add a new integration.
image title
/images/mqtt-broker/user-guide/ui/add-http-integration-2.png
Select "HTTP" as the integration type and click "Next".
image title
/images/mqtt-broker/user-guide/ui/add-http-integration-3.png
Click "Next" to subscribe to the default topic "tbmq/#".
image title
/images/mqtt-broker/user-guide/ui/add-http-integration-4.png
In the field "Endpoint URL" paste the URL from the HTTP integration of your ThingsBoard Cloud.
image title
/images/mqtt-broker/user-guide/ui/add-http-integration-5.png
Open "Advanced settings", set "Payload content type" as JSON, and click "Add".
send-uplink-message
0 1
image title
/images/mqtt-broker/user-guide/ui/send-uplink-message-1.png
Navigate to the "WebSocket Client" page, select working connection, then click "Connect".
image title
/images/mqtt-broker/user-guide/ui/send-uplink-message-2.png
Set topic name as "tbmq/http-integration", and click "Send" to publish message.
http-integration-result
0 1
image title
/images/mqtt-broker/user-guide/ui/http-integration-result-1.png
Open ThingsBoard Cloud HTTP integration details page.
image title
/images/mqtt-broker/user-guide/ui/http-integration-result-2.png
Go to the "Events" tab, the message from the TBMQ HTTP integration should be available in the table (if the debug mode was enabled when message was published).

{% include docs/mqtt-broker/integrations/http.md %}