nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ coap_init()

void coap_init ( int  ip_family,
struct sockaddr *  addr 
)

#include <include/net/coap_utils.h>

Open socket and start the receiving thread.

Parameters
[in]ip_familyNetwork IP protocol family (AF_INET or AF_INET6).
[in]addrLocal address to bind for receiving data. Pass NULL pointer if no address is provided.