Skip to main content

pamoja_transport_coap

Function pamoja_transport_coap 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_transport_coap( config: *const PamojaCoapConfig, ) -> *mut PamojaTransport
Expand description

Creates a CoAP transport for composing into a ladder or a wrapper.

§Arguments

  • config - the endpoint settings.

§Returns

A handle the caller must release with pamoja_transport_free or hand to a call that consumes it, or null on failure.

§Safety

config must point to a valid PamojaCoapConfig whose strings are valid null-terminated UTF-8 for the duration of the call.