Skip to main content

Module device

Module device 

Source
Expand description

Push-based snapshots of local device capability changes.

Emitted when any of (battery level, charging state, relay role) changes between consecutive OfflineProtocol::process() ticks. Apps that need “always-on” polling consume this instead of reconstructing the state from the cumulative TransportMetrics stream.

Advertised services are not represented — the SDK does not currently track an advertised-services list. A later step introduces that surface with its own dedicated record.

Structs§

DeviceCapabilitySnapshot
Snapshot of local device capability at the moment of emission.

Constants§

CHANGED_BATTERY
Bitmask bit indicating battery_level changed between ticks.
CHANGED_CHARGING
Bitmask bit indicating is_charging changed between ticks.
CHANGED_RELAY_ROLE
Bitmask bit indicating relay_role changed between ticks.