Get the byte at given position without affecting the internal position tracker.
Get the frame control, ID and params index according to format version. Throws if frame control is unsupported (using reserved).
Anything but SUCCESS should stop further processing.
Read a uint8_t for payload length, followed by payload buffer (using post-length position).
Get a copy of the rest of the buffer (from current position to end). WARNING: Make sure the length is appropriate, if alloc'ed longer, it will return everything until the end.
EZSP switched to using SLStatus for command returns from version 14.
EZSP protocol version in use
If true, map from EmberStatus, otherwise map from EzspStatus
EzspStatus, EmberStatus or SLStatus as SLStatus
Set the byte at given position without affecting the internal position tracker.
Set the position of the internal position tracker.
Write a uint8_t for payload length, followed by payload buffer (copied at post-length position).
WARNING: payload
must have a valid length (as in, not a Buffer allocated to longer length).
Should be passed with getWritten() in most cases.
Get the byte at given position without affecting the internal position tracker.