Constants used in CoAP such as option numbers and message codes.
int unicoap_cancel_request(int refno)
Cancels request with reference number.
int unicoap_send_request_async(unicoap_message_t *request, unicoap_destination_t *destination, unicoap_response_callback_t callback, unicoap_request_parameters_t *parameters, unicoap_request_flags_t flags)
Sends a request asynchronously.
int(* unicoap_response_callback_t)(const unicoap_message_t *response, const unicoap_aux_t *aux, int error, void *arg)
Response or error callback.
int unicoap_send_request_sync(unicoap_message_t *request, unicoap_destination_t *destination, unicoap_response_callback_t callback, unicoap_request_parameters_t *parameters, unicoap_request_flags_t flags)
Sends a request synchronously.
int unicoap_send_request_sync_copy(unicoap_message_t *request, unicoap_destination_t *destination, unicoap_message_t *response, unicoap_request_parameters_t *parameters, unicoap_request_flags_t flags, unicoap_aux_t *aux)
Sends a request synchronously and copies the request to the given buffer.
void unicoap_print_request_flags(unicoap_request_flags_t flags)
Prints request flags.
unicoap_request_flags_t
Flags for enabling advanced features in client exchanges.
@ UNICOAP_REQUEST_FLAG_RELIABLE
Sets the type of the message to confirmable (CON), if the endpoint uses a non-reliable transport such...
Auxiliary exchange information.
A type abstracting over CoAP resource identifiers.
Additional parameters to customize request behavior.
uint32_t timeout_ms
Response timeout in milliseconds.
void * callback_arg
Opaque argument passed to callback both in success and failure cases.
CoAP transport protocol abstraction layer.
Utility macros for unicoap