Zigbee.EZSP.Status (zigbee v0.1.0)

Copy Markdown View Source

Decoding for EmberStatus, the 1-byte status code returned by most EZSP commands and carried in stackStatusHandler callbacks.

Only the codes relevant to the bring-up / network path are named; anything else decodes to {:unknown, byte} so nothing is silently swallowed.

Summary

Functions

Decode a single EmberStatus byte to a friendly atom.

True if the status byte is EMBER_SUCCESS (0x00).

Functions

decode(byte)

@spec decode(byte()) :: atom() | {:unknown, byte()}

Decode a single EmberStatus byte to a friendly atom.

success?(arg1)

@spec success?(byte()) :: boolean()

True if the status byte is EMBER_SUCCESS (0x00).