#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_lorawan_device_join_request(
device: *const PamojaLorawanDevice,
dev_nonce: u16,
out_frame: *mut *mut PamojaBuffer,
) -> PamojaStatusExpand description
Builds the join request a device broadcasts to activate.
§Arguments
device- the device to activate.dev_nonce- a nonce that must never repeat for this device, since the network rejects a replayed one.out_frame- receives the encoded join request.
§Returns
PamojaStatus::Ok on success, with *out_frame set to a buffer the caller
must release with pamoja_buffer_free, or
PamojaStatus::InvalidArgument if device is null.
§Safety
device must be a live handle from pamoja_lorawan_device_new, or null, and
out_frame must point to a writable *mut PamojaBuffer.