For the complete documentation index, see llms.txt. This page is also available as Markdown.

Device Metadata & Connection Updates

Device Metadata

Various devices metadata are provided through an SQS queue. The messages contain the following fields:

Attribute
Required
Type
Description

meter_id

Yes

string

The hexadecimal representation of the gateway EUI64

installation_id

No

string

The external installation identifier

account_id

No

string

The external account identifier

labelpartner

Yes

string

The label partner's short name

data

Yes

object

The main object containing measurement arrays per attribute

The following list contains all the reported attributes:

Attribute
Description

hw

Hardware Version

dev

Device ID

batch

Batch ID

fw

Firmware Version

resc

Reset Counter

recc

Reconnect Counter

ress

Reset Source

rpt

Report Mode

elec_serial

Electricity Meter Serial Number

gas_serial

Gas Meter Serial Number

For each attribute, the basic measurement object schema contains the following fields:

Attribute
Required
Type
Description

t

Yes

integer

The Unix timestamp of the measurement, in seconds

v

Yes

integer

The value of the measurement

Specifically, for Reser Source, the available values are the following:

Description
Value

None

none

Low Power

low_power

Watchdog

watchdog

Power On

power_on

External Pin

external_pin

Brownout

brownout

Software

software

Panic

panic

Deep Sleep

deep_sleep

SDIO

sdio

Reserved

reserved

Factory Reset

factory_reset

LAN API

lan_api

OTA

ota

Remote Shell

rsh

User Button

user_btn

WLAN Leave

wlan_leave

An example of such a message can be found below :

The name of the SQS queue is: streamer-device-metadata-queue-<stage>.fifo

Connection Updates

Another SQS queue is available for messages regarding the connection status updates, containing the following fields:

Attribute
Required
Type
Description

meter_id

Yes

string

The hexadecimal representation of the gateway EUI64

installation_id

No

string

The external installation identifier

account_id

No

string

The external account identifier

labelpartner

Yes

string

The label partner's short name

timestamp

Yes

integer

The timestamp of the connection update, in milliseconds.

connection_status

Yes

string

The status of the device (See: Connection Statuses)

Regarding connection_status, the following table includes the values that will be reported:

Connection Status
Description

SUCCESS

The device successfully connected to the platform

AUTH_ERROR

The device is disconnected from the platform due to an authentication or authorization error.

CLIENT_INITIATED_DISCONNECT

The device is disconnected from the platform due to a client-initiated disconnect.

CLIENT_ERROR

The device is disconnected from the platform due to a client error.

CONNECTION_LOST

The device was disconnected from the platform because it lost the client-server connection. This can happen during high network latency or when internet connection is lost.

DUPLICATE_CLIENTID

The device is disconnected from the platform because another device with the same client ID is already connected.

FORBIDDEN_ACCESS

The device is not allowed to be connected.

MQTT_KEEP_ALIVE_TIMEOUT

The device is disconnected if there is no client-server communication for 1.5x of the client's keep-alive time.

SERVER_ERROR

The device is disconnected from the platform due to an unexpected server issue.

SERVER_INITIATED_DISCONNECT

The server has intentionally disconnected the device for operational reasons.

THROTTLED

The device is disconnected from the platform for exceeding a throttling limit.

WEBSOCKET_TTL_EXPIRATION

The device is disconnected from the platform because a WebSocket has been connected longer than its time-to-live value.

CUSTOMAUTH_TTL_EXPIRATION

The device is disconnected from the platform because it has been connected longer than the time-to-live value of its custom authorizer.

An example of such a message can be found below:

The name of the SQS queue is: streamer-connection-status-updates-<stage>.fifo

Last updated

Was this helpful?