parse_write_response

Function parse_write_response 

Source
pub fn parse_write_response(buf: &[u8]) -> Result<(u16, &[u8]), String>
Expand description

Parse a write response from the radio.

Format: W + 4-byte address + 256-byte data = 261 bytes total. Bytes 1-2 are the page address (big-endian), bytes 3-4 are the offset (always zero).

Returns (page_address, data_slice) on success.

ยงErrors

Returns an error string if the response is too short or has an invalid marker byte.