Skip to content

Backend

Commands related to backend configuration

Exists

Check if backend config exists

Parameters

None

Example

meshtech/diagnostics/cc3fc0fa8d21/command/config/backend/exists
{
  "id":"10"
}
meshtech/diagnostics/cc3fc0fa8d21/response/config/backend/exists
{
  "id":"10",
  "success":true,
  "result":"True"
}

Set

Set backend config

Parameters

config: Configuration to set in JSON format

Example

meshtech/diagnostics/cc3fc0fa8d21/command/config/backend/set
{
  "id":"11",
  "params":{
    "config":{
      "format":0,
      "backend":{
        "id":"MT",
        "host":"192.168.1.1",
        "port":1883,
        "useTls":false,
        "UserName":"",
        "Password":"",
        "rootCertificates":[

        ]
      }
    }
  }
}
meshtech/diagnostics/cc3fc0fa8d21/response/config/backend/set
{
  "id":"11",
  "success":true,
  "result":"Backend config set"
}