Skip to main content

pamoja_coap_client_connect

Function pamoja_coap_client_connect 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_coap_client_connect( client: *mut PamojaCoapClient, ) -> PamojaStatus
Expand description

Binds the local socket so the endpoint can carry traffic.

§Arguments

  • client - the endpoint.

§Returns

PamojaStatus::Ok once bound.

§Safety

client must be a live handle from pamoja_coap_client_new.