Zigbee.Message (zigbee v0.1.0)

Copy Markdown View Source

A normalized inbound Zigbee APS message.

Every Zigbee.Adapter backend emits these as {:zigbee, :message, %Zigbee.Message{}} regardless of the underlying radio/NCP, so the application layer (Zigbee.Interview, Zigbee.ZCL, Zigbee.ZDO) never sees chip-specific frame formats. The payload is the raw APS payload (a ZCL frame on an application profile, or a ZDO frame on profile 0x0000), decoded by Zigbee.ZCL / Zigbee.ZDO.

Summary

Types

t()

@type t() :: %Zigbee.Message{
  aps_seq: 0..255 | nil,
  cluster: 0..65535,
  dst_endpoint: 0..255,
  group: 0..65535 | nil,
  lqi: 0..255 | nil,
  payload: binary(),
  profile: 0..65535,
  rssi: integer() | nil,
  source: 0..65535,
  src_endpoint: 0..255
}