Skip to content

lib: nrf_cloud: use zephyr sockets #22530

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 28, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions subsys/net/lib/nrf_cloud/src/nrf_cloud_download.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ int nrf_cloud_download_handle_coap_auth(int socket)

/* Send the request */
LOG_DBG("Sending CoAP auth request, size %zu", request_size);
err = send(socket, packet_buf, request_size, 0);
err = zsock_send(socket, packet_buf, request_size, 0);
if (err < 0) {
LOG_ERR("Failed to send CoAP request, errno %d", errno);
goto end;
Expand All @@ -98,7 +98,7 @@ int nrf_cloud_download_handle_coap_auth(int socket)
for (size_t i = 0; i < 10; ++i) {
k_sleep(K_MSEC(COAP_REQ_WAIT_TIME_MS));
/* Poll for response */
err = recv(socket, packet_buf, COAP_AUTH_REQ_BUF_SIZE, MSG_DONTWAIT);
err = zsock_recv(socket, packet_buf, COAP_AUTH_REQ_BUF_SIZE, ZSOCK_MSG_DONTWAIT);
if (err < 0) {
if (errno == EAGAIN || errno == EWOULDBLOCK) {
continue;
Expand Down