Skip to main content

pamoja_gateway_station_discovery

Function pamoja_gateway_station_discovery 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_gateway_station_discovery( router: *const u8, out_text: *mut *mut PamojaBuffer, ) -> PamojaStatus
Expand description

Writes the request a station sends to find its network server.

§Arguments

  • router - the station asking, eight bytes.
  • out_text - receives the text, which the caller releases with pamoja_buffer_free.

§Returns

PamojaStatus::Ok once written.

§Safety

router must point to eight readable bytes, and out_text to writable storage.