From aba42d780e0f550f04eb431ab910c5eeedfdd263 Mon Sep 17 00:00:00 2001 From: Seppo Takalo Date: Wed, 20 May 2026 11:06:56 +0300 Subject: [PATCH 1/2] manifest: Update nrf to #28522 nrf PR https://github.com/nrfconnect/sdk-nrf/pull/28522 changes the API, so prepare it by updating and refactoring the API. Signed-off-by: Seppo Takalo --- west.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/west.yml b/west.yml index 5173605d..a1aa1210 100644 --- a/west.yml +++ b/west.yml @@ -13,7 +13,7 @@ manifest: - name: nrf remote: ncs repo-path: sdk-nrf - revision: 986ee876a5b0ed470f7e0be3a4e5f5ea9c6c26dd + revision: 87142600aab879c6ff225b103d6626da7140f858 import: name-allowlist: - cjson From bfbc999b4f37a1197a5fae439d60338ed14a3af3 Mon Sep 17 00:00:00 2001 From: Seppo Takalo Date: Tue, 19 May 2026 11:40:21 +0300 Subject: [PATCH 2/2] app: Refactor nrf_cloud_rest to nrf_cloud_coap Since PR https://github.com/nrfconnect/sdk-nrf/pull/28522 the structure names have changed since REST API is not supported anymore. Signed-off-by: Seppo Takalo --- app/src/sm_at_gnss.c | 10 +++++----- app/src/sm_at_nrfcloud.c | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/sm_at_gnss.c b/app/src/sm_at_gnss.c index 7a82bfec..aff2157d 100644 --- a/app/src/sm_at_gnss.c +++ b/app/src/sm_at_gnss.c @@ -321,8 +321,8 @@ static void agnss_requestor(struct k_work *) int err; struct nrf_modem_gnss_agnss_data_frame req; static char agnss_rest_data_buf[NRF_CLOUD_AGNSS_MAX_DATA_SIZE]; - struct nrf_cloud_rest_agnss_request request = { - NRF_CLOUD_REST_AGNSS_REQ_CUSTOM, + struct nrf_cloud_coap_agnss_request request = { + NRF_CLOUD_COAP_AGNSS_REQ_CUSTOM, &req, }; @@ -332,7 +332,7 @@ static void agnss_requestor(struct k_work *) return; } - struct nrf_cloud_rest_agnss_result result = {agnss_rest_data_buf, + struct nrf_cloud_coap_agnss_result result = {agnss_rest_data_buf, sizeof(agnss_rest_data_buf), 0}; struct lte_lc_cells_info net_info = {0}; @@ -345,7 +345,7 @@ static void agnss_requestor(struct k_work *) err = nrf_cloud_coap_agnss_data_get(&request, &result); if (err) { - LOG_ERR("Failed to request A-GNSS data via REST (%d).", err); + LOG_ERR("Failed to request A-GNSS data via CoAP (%d).", err); return; } @@ -375,7 +375,7 @@ static void pgps_requestor(struct k_work *) static void pgps_coap_requestor(struct k_work *) { int err; - struct nrf_cloud_rest_pgps_request request = {.pgps_req = &pgps_coap_request}; + struct nrf_cloud_coap_pgps_request request = {.pgps_req = &pgps_coap_request}; struct nrf_cloud_pgps_result file_location = {0}; static char host[64]; static char path[128]; diff --git a/app/src/sm_at_nrfcloud.c b/app/src/sm_at_nrfcloud.c index c5b75c16..73db0a78 100644 --- a/app/src/sm_at_nrfcloud.c +++ b/app/src/sm_at_nrfcloud.c @@ -290,7 +290,7 @@ static void loc_req_wk(struct k_work *work) } struct nrf_cloud_location_result result = {0}; - const struct nrf_cloud_rest_location_request request = { + const struct nrf_cloud_coap_location_request request = { .config = NULL, .cell_info = nrfcloud_cell_pos ? &nrfcloud_cell_data : NULL, .wifi_info = nrfcloud_wifi_pos ? &nrfcloud_wifi_data : NULL};