#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_lorawan_relay_trust(
relay: *mut PamojaLorawanRelay,
index: u8,
dev_addr: u32,
root_wor_s_key: *const u8,
next_wfcnt: u32,
reload_rate: u8,
bucket_size: u8,
) -> PamojaStatusExpand description
Trusts an end device, as an UpdateUplinkListReq with the same fields does.
§Arguments
relay- the relay.index- the entry, 0 to 15.dev_addr- the device’s address.root_wor_s_key- its sixteen-byte root relay session key.next_wfcnt- the wake-on-radio frame counter to expect from it next.reload_rate- its uplinks forwarded an hour, 63 for no limit.bucket_size- the coded bucket size multiplier, TS011-1.0.1 table 55.
§Returns
PamojaStatus::Ok on success.
§Errors
Returns PamojaStatus::InvalidArgument for a null handle or key, or an index past 15.
§Safety
relay must be a live handle and root_wor_s_key point to sixteen readable bytes.