Skip to main content

ProGlove Documentation

Scanner connectivity command

Scanner connectivity command messages are used to manage the connections between the scanners and the integrated system.

You can send a single message to either connect, disconnect, or both at the same time. If you send both commands, the disconnecting happens first and then a new connection is initiated.

To disconnect, you must specify it explicitly. If you only send a connection message and the gateway device already has a maximum number of allowed connections, the new connection will not be initiated and you will get an error.

When sending a disconnect message, you must list an array of serial numbers to ensure that the devices with those exact serial numbers are disconnected. If you specify serial numbers of scanners that are not connected is in the disconnect message, they are ignored.

Response: Error event in case of an error.

Name

Type

Description

Accepted values

Constraints

Required

api_version

string

The input API schema version number.

1.0

Yes

event_type

string

The message type.

scanner_conectivity!

Yes

event_id

string

The message identifier. This can be used to reference it.

Any

UUID format UUID format [0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}

Yes

time_created

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

connect

boolean

Initiates a connection with the scanner.

true

Not required if the disconnect is set. Both can be set.

disconnect

string array or string

  • array of serial numbers of the scanners you want to disconnect

  • all - the keyword used to disconnect all connected scanners

  • array of serial numbers

  • the keyword all

If you use an array of serial numbers:

  • 1 <= array size <= 50

  • 1 <= serial number length <= 128

Not required if the connect is set. Both can be set.

Examples
{
  "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
}