#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_lorawan_clock_sync_request(
sync: *mut PamojaLorawanClockSync,
device_time: u32,
ans_required: u8,
out_command: *mut u8,
capacity: usize,
out_len: *mut usize,
) -> PamojaStatusExpand description
Builds the request that asks a server for a clock correction, section 3.2.
§Arguments
sync- the package.device_time- what the device believes the time is, in seconds since the GPS epoch.ans_required-1to make the server answer even when the clock is right.out_command- receives the command.capacity- how many bytes that buffer holds, at least six.out_len- receives how many were written.
§Returns
PamojaStatus::Ok on success.
§Errors
Returns PamojaStatus::InvalidArgument for a null pointer or a buffer too small.
§Safety
sync must be a live handle, out_command must point to capacity writable bytes, and
out_len must be writable.