Skip to main content

pamoja_lorawan_clock_sync_new

Function pamoja_lorawan_clock_sync_new 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_lorawan_clock_sync_new( self_managed: u8, out_sync: *mut *mut PamojaLorawanClockSync, ) -> PamojaStatus
Expand description

Starts the clock synchronization package on a device, TS003-2.0.0.

§Arguments

  • self_managed - 1 for a device that keeps its own periodicity and refuses the server’s.
  • out_sync - receives the package.

§Returns

PamojaStatus::Ok on success, with *out_sync set to a handle the caller must release with pamoja_lorawan_clock_sync_free.

§Errors

Returns PamojaStatus::InvalidArgument for a null out pointer.

§Safety

out_sync must be writable.