The "describeBrokerConnections" action returns all available information about specified broker connections.
Request examples
Minimal
{
"action": "describeBrokerConnections",
"params": {
"brokerConnectionNames": [ "MqttBroker1" ]
},
"authToken": "replaceWithAuthTokenFromCreateSession"
}
Response examples
Minimal
{
"result": {
"brokerConnectionNames": [
{
"brokerHostname": "https://mqtt.faircom.com/",
"brokerPort": 1883,
"brokerUserName": "",
"reconnectFrequencySeconds": 15,
"isConnected": true,
"statusCode": 9026,
"statusMessage": "Not able to connect thread to MQTT broker"
}
]
},
"requestId": "00000056",
"errorCode": 0,
"errorMessage": ""
}
Properties
Request properties ("params")
| Property | Description | Default | Type | Limits (inclusive) |
|---|---|---|---|---|
brokerConnectionNames |
The
|
Optional with default of []
|
array |
|
Response properties ("result")
| Property | Description | Type | Limits (inclusive) |
|---|---|---|---|
brokerConnectionNames |
The |
array of objects |
1 object for each broker connection matching the request containing some or all of the following properties:
|
|
brokerConnectionNames .brokerHostname |
The |
string | The unique broker host name or TCP/IP address of the specified broker connection. |
|
brokerConnectionNames .brokerPort |
The |
integer | A number between 1 and 65535
|
|
brokerConnectionNames .brokerUserName |
The
|
VARCHAR(500) string | The login name to the external broker. |
|
brokerConnectionNames .isConnected |
The "isConnected" property indicates whether the specified broker connection is active. |
Boolean |
|
|
brokerConnectionNames .reconnectFrequencySeconds |
The
|
int32 | the number of seconds the broker will wait between attempts to reconnect to an external broker. |
|
brokerConnectionNames .statusCode |
The "statusCode" property displays the status code for the specified broker connection. |
integer | See error codes |
|
brokerConnectionNames .statusMessage |
The "statusMessage" property describes the status code with a written explanation. |
string | 0 to 1024 bytes |