Skip to content

Broadcast Requests

All gateways will subscribe to the mt/gateways/... topic for incoming requests addressed to all gateways.

write

mt/gateways/write/{identifier}

Write gateway property.

All gateways will respond on mt/gateway/{g}/response/{g}/write, where g is gateway MAC address. This is the same response topic that is used for one-to-one requests.

Example

mt/gateways/write/9000
{
  "id": "420",
  "value": "32"
}

Response(s):

(two gateways)

mt/gateway/e4ebc3f77f09/response/e4ebc3f77f09/write/9000
{
  "id": "420",
  "time": "2020-10-09T12:14:41.830Z",
  "status": 0
}

mt/gateway/ef6d7dd1d9ed/response/ef6d7dd1d9ed/write/9000
{
  "id": "420",
  "time": "2020-10-09T12:14:41.901Z",
  "status": 0
}

write-decoded

mt/gateways/write-decoded/{identifier-name}

Write gateway property.

All gateways will respond on mt/gateway/{g}/response/{g}/write-decoded, where g is gateway MAC address. This is the same response topic that is used for one-to-one requests.

Example

mt/gateways/write-decoded/scan-window
{
  "id": "420",
  "value": 50
}

Response(s):

(two gateways)

mt/gateway/e4ebc3f77f09/response/e4ebc3f77f09/write-decoded/scan-window
{
  "id": "420",
  "time": "2020-10-09T12:14:41.830Z",
  "status": 0
}

mt/gateway/ef6d7dd1d9ed/response/ef6d7dd1d9ed/write-decoded/scan-window
{
  "id": "420",
  "time": "2020-10-09T12:14:41.901Z",
  "status": 0
}