pub fn wor_ack(
keys: &WorKeys,
dev_addr: u32,
wfcnt: u32,
ack: Carrier,
uplink: Carrier,
state: StateSync,
) -> Result<[u8; 7], LorawanError>Expand description
Builds a relay’s WOR ACK, TS011-1.0.1 section 6.2.
§Arguments
keys- the end device’s keys.dev_addr- its address.wfcnt- the 32-bit counter of the WOR frame being acknowledged.ack- the carrier the acknowledgment goes out on, which its encryption folds in.uplink- the carrier the WOR frame said the uplink follows on, which its integrity code folds in.state- what the relay tells the device.
§Returns
The acknowledgment.
§Errors
Returns LorawanError::MalformedFrame for a state the bits cannot carry or a carrier
the fields cannot.