Skip to content

4.1. Identifiers

For the web management interface referred to in this and the following protocol chapters, see 3. Using the Gateway.

The content explained in this chapter applies to later chapters. Users can look up the explanations in this chapter based on the reference hints in specific use cases.

The identifiers used in communication include machineID (machine identifier), groupID (group identifier), slaveID (slave identifier), ID (database identifier), and uid (gateway identifier).

The gateway supports connecting to multiple machine devices simultaneously, and a unique machineID must be defined for each connected device. The machineID can be customized by the user on the gateway’s machine configuration page, under Add/Edit Machine - Advanced Settings (see 3.3.1.5. Advanced Settings). By default, the machineID is derived by concatenating the third and fourth octets of the machine’s IP address, then stripping leading zeros. If the third octet is not 0, the fourth octet is padded to three digits. For example, the machineID corresponding to 192.168.0.1 is 1, and the machineID corresponding to 192.168.1.12 is 1012.

The gateway currently supports up to 16 groups, and a unique groupID must be defined for each group of devices. The groupID can be customized by the user on the gateway’s group configuration page, under Add/Edit Machine - Advanced Settings (see 3.4.1.3. Advanced Settings). By default, the groupID consists of the letter “g” followed by the group number, e.g. “g2”.

The slaveID is used as the machine data identifier for MODBUS communication, with a range of 1-255. The slaveID can be customized by the user on the gateway’s machine configuration page, under Add/Edit Machine - Advanced Settings (see 3.3.1.5. Advanced Settings). By default, the slaveID is the fourth octet of the machine’s IP address.

The ID (database identifier) is the identifier for a user, machine, or group in the local database. The ID is automatically generated in the database when a user, machine, or group is created, and cannot be created or modified by the user.

The uid (gateway identifier) is the gateway’s own identifier. It defaults to the gateway’s hardware ID and can be viewed via 5.9.1.1. gateway-info Get Gateway Information.

Data collected by the gateway itself has an empty uid. In a cascaded (gatewayLinks) setup, data from a downstream gateway carries that gateway’s uid, therefore:

  • The machine/group data and historical data APIs all accept an optional uid parameter that selects the gateway the data came from. When uid is omitted, only this gateway’s own data is returned.
  • MQTT payloads and database output also emit uid as a data tag / data column.