Hardware Category Events

Type Description
ALERT_STATE Indicates a change in alert state of a device
object
AlertState
string

Indicates the alert state of the device.

Enum: "active" "off"
{
  • "Content": {
    }
}
Type Description
BATTERY_LEVEL A period update about a device's battery level
object
BatteryLevel
number [ 0 .. 1 ]

Battery level of the source device as represented as a decimal value between 0..1

{
  • "Content": {
    }
}
Type Description
BUTTON_PRESS A message indicating one of a device's buttons was pressed
object
ButtonState
Array of booleans non-empty

Array of states indicate the state of each device button. (True = button is depressed).

{
  • "Content": {
    }
}
Type Description
DEVICE_STATE Indicates a change in device state
Array of objects (Device)
Array
DeviceID
string

A 6-byte MAC address associated to the device. This is usually the MAC address associated with the radio or Ethernet interface, depending on the particular device.

Position
Array of numbers >= 3 items

A vector representing the last known X, Y, and Z coordinates of the device, respectively. Coordinates are in metres, and may be negative.

Orientation
Array of numbers >= 4 items

A vector representing the W, X, Y, and Z values (respectively) of a normalized quaternion representing the device's orientation.

DeviceFlags
integer

A bitfield integer representing device-specific state information.

AlertState
string

The alert state of a device indicates whether it is currently alarming by flashing it's alarm LED, and exciting its buzzer and vibration motor.

Enum: "off" "active"
FirmwareHash
string

A unique hash identifier that indicates the exact firmware build on an device.

FirmwareVersion
string

The version of the firmware on a device.

DeviceType
string

Indicates whether the device is a gateway device, anchor node, or mobile node. This value is derived from the DeviceFlags bitfield.

Enum: "gateway" "anchor" "mobile"
LastUpdateTime
string <date-time>

The date and time of the last communication from the device.

BatteryLevel
number [ 0 .. 1 ]

The last indicated battery-level as a decimal value between 0..1. This field will be null if the device have not reported its battery level.

LastGatewaySource
string

A URI that specifies the last known network route to a device of the form ZK://{SiteID}::{GatewayID}::{ExternalSource}). ExternalSource may be a UDP end-point for Power-over-Ethernet devices of the form UDP::{Host}:{Port}, or may be a USB connected gateway of the form USB::{DeviceID}.

HardwareType
integer

The hardware type of the device.

Enum: -1 0 1 2 3 4 5 6 7 8 9 10 11
{
  • "Content": [
    ]
}
Type Description
STALE_DEVICE Indicates a device has not sent position data after some time.
object
LastUpdateTime
string <date-time> (LastUpdateTime)

The date and time of the last communication from the device.

{
  • "Content": {
    }
}
Type Description
UNRESPONSIVE_DEVICE Indicates a device hasn't reported to the system after some time.
object
LastUpdateTime
string <date-time> (LastUpdateTime)

The date and time of the last communication from the device.

{
  • "Content": {
    }
}
Type Description
DEVICE_IDENTIFICATION Indicates the device type.
object
DeviceType
string (DeviceType)

Indicates whether the device is a gateway device, anchor node, or mobile node. This value is derived from the DeviceFlags bitfield.

Enum: "gateway" "anchor" "mobile"
{
  • "Content": {
    }
}
Type Description
DIAGNOSTICS_REPORT Contains device diagnostics informations such as battery level, device type, hardware type, uptime, crash(true/false) since last reset.
object
BatteryLevel
number (properties-BatteryLevel) [ 0 .. 1 ]

The last indicated battery-level as a decimal value between 0..1. This field will be null if the device have not reported its battery level.

BatteryMilliAmps
integer

An integer representing the battery level in milliamps.

DeviceType
string (DeviceType)

Indicates whether the device is a gateway device, anchor node, or mobile node. This value is derived from the DeviceFlags bitfield.

Enum: "gateway" "anchor" "mobile"
HardwareType
integer (HardwareType)

The hardware type of the device.

Enum: -1 0 1 2 3 4 5 6 7 8 9 10 11
FirmwareHash
string (FirmwareHash)

A unique hash identifier that indicates the exact firmware build on an device.

FirmwareVersion
string (FirmwareVersion)

The version of the firmware on a device.

Uptime
integer

An integer representing the uptime of the device in seconds.

Crash
boolean

A boolean value indicating whether the device has experienced a crash since the last reset.

{
  • "Content": {
    }
}