Skip to main content

pamoja_coap_client_disconnect

Function pamoja_coap_client_disconnect 

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

Releases the socket the endpoint holds.

§Arguments

  • client - the endpoint.

§Returns

PamojaStatus::Ok once closed.

§Safety

client must be a live handle from pamoja_coap_client_new.