#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_lorawan_relay_new(
plan: *const PamojaLoraPlan,
credentials: *const PamojaLorawanDevice,
settings: *const PamojaLorawanDeviceSettings,
xtal_accuracy: u8,
cad_to_rx: u8,
out_relay: *mut *mut PamojaLorawanRelay,
) -> PamojaStatusExpand description
Makes a relay whose own device joins over the air.
§Arguments
plan- a published channel plan.credentials- the relay’s own identifiers and root key.settings- what its radio can do.xtal_accuracy- how accurate its crystal is, table 17.cad_to_rx- how long it takes to start receiving, table 15.out_relay- receives the relay.
§Returns
PamojaStatus::Ok on success.
§Errors
As pamoja_lorawan_relay_personalized.
§Safety
plan and credentials must be live handles, settings must point to a readable
PamojaLorawanDeviceSettings, and out_relay to a writable pointer.