Get MQTT Configuration

Last Updated on : 2023-06-21 07:13:08download

Get the MQTT connection management configurations, used by the web component.

API address

POST: /v1.0/industry/monitor/mqtt-config-get

Request parameter

Parameter name Type IN Required Description
connect_id String false Ignored.
link_type String false Ignored.
cat_key String false Ignored.
cat_val String false Ignored.

Return parameter

Parameter name Type Description
result MqttConfigResp The returned result.

Description of result

Parameter name Type Description
topics List The list of topics.
username String The username.
url String The address to be connected.
password String The password used for connection.

Request example

POST: /v1.0/industry/monitor/mqtt-config-get

Return example

{ "result": { "topics": [ "/av/u/AY1636961564510mF4i9qsIUmX7bSWzphDlSPRkVG****" ], "url": "wss://***.***.com:443/mqtt", "password": "1d0ddb4b6923628a31e1e1702f7fe***", "username": "web_AY1636961564510mF4i9qsIUmX7bSWzphDlSPRkVGj****" }, "t": 1636961564530, "success": true }

Error code

For more information, see error code.