Gateway state event
Gateway state event is received as a response to the Gateway state command. When you connect a Gateway, a state event message is automatically sent as soon as the Gateway boots up and is ready for use.
Fields
Name | Type | Description | Accepted values | Constraints | Required |
---|---|---|---|---|---|
| string | The input API schema version number. |
| Yes | |
| string | The message type. |
| Yes | |
| string | The message identifier. This can be used to reference it. | Any | UUID format | Yes |
| integer | The time of creation client-side, used to determine the order of incoming messages. Unix time stamp in milliseconds. | Any | 1546300800000 <= value <= 99999999999999 | Yes |
| string | The reference message identifier. Used to reference the message that caused this error. | Any | UUID format | No |
| string | The serial number of the Gateway. | Any | 1 <= length <= 128 | Yes |
| string | The version of Gateway application. | Any | 1 <= length <= 128 | Yes |
| array[Device] | The list of connected devices (see Device object below). | Any | size <= 50 items | Yes |
Device object
Name | Type | Description | Accepted values | Constraints | Required |
---|---|---|---|---|---|
| string | The serial number of the worker device. | Any | 1 <= length <= 128 | Yes |
| string | The firmware version of the device. | Any | 1 <= length <= 128 | No |
| string | The model of the device. | Any | 1 <= length <= 128 | No |
| string | The manufacturer of the device. | Any | 1 <= length <= 128 | No |
Example
{ "api_version": "1.0", "event_type": "gateway_state", "event_id": "02114da8-feae-46e3-8b00-a3f7ea8672df", "time_created": 1546300800000, "event_reference_id": "e4f0da9f-056b-49c8-80fa-af42614e150c", "gateway_serial": "PGGW000000058", "gateway_app_version": "v1.5.0", "device_connected_list": [ { "device_serial": "M2MR111100928", "device_firmware_version": "v2.2.0", "device_model": "Mark Two", "device_manufacturer": "Workaround GmbH" }, { "device_serial": "M2MR111100942", "device_firmware_version": "v2.0.0", "device_model": "Mark Two", "device_manufacturer": "Workaround GmbH" } ] }