Scanner connectivity command
This command is used for managing connections between the Gateway and scanners.
Response: If successful, the scanner will connect or disconnect, depending on its current status. Error event might be returned if trying to connect more devices than it is supported.
Note
Disconnections may not happen automatically. If only connection is commanded, and gateway device already have maximum of supported connections created, new connection will not be initiated, and error will be thrown.
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 |
| boolean | States that connection with scanner device should be initiated. |
| Not required if | Yes |
| string | Either:
| Either:
| If array of serial numbers:
| Not required if |
Example
{ "api_version": "1.0", "event_type": "scanner_connectivity!", "event_id": "02114da8-feae-46e3-8b00-a3f7ea8672df", "time_created": 1546300800000, "disconnect": ["MDMR100000001", "MDMR10000002"], "connect": true }
{ "api_version": "1.0", "event_type": "scanner_connectivity!", "event_id": "02114da8-feae-46e3-8b00-a3f7ea8672df", "time_created": 1546300800000, "disconnect": "all", "connect": true }