Skip to content

Commit 82cb492

Browse files
committed
app: Refactor nrf_cloud_rest to nrf_cloud_coap
Since PR nrfconnect/sdk-nrf#28522 the structure names have changed since REST API is not supported anymore. Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
1 parent 4d7da57 commit 82cb492

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

app/src/sm_at_gnss.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,8 @@ static void agnss_requestor(struct k_work *)
321321
int err;
322322
struct nrf_modem_gnss_agnss_data_frame req;
323323
static char agnss_rest_data_buf[NRF_CLOUD_AGNSS_MAX_DATA_SIZE];
324-
struct nrf_cloud_rest_agnss_request request = {
325-
NRF_CLOUD_REST_AGNSS_REQ_CUSTOM,
324+
struct nrf_cloud_coap_agnss_request request = {
325+
NRF_CLOUD_COAP_AGNSS_REQ_CUSTOM,
326326
&req,
327327
};
328328

@@ -332,7 +332,7 @@ static void agnss_requestor(struct k_work *)
332332
return;
333333
}
334334

335-
struct nrf_cloud_rest_agnss_result result = {agnss_rest_data_buf,
335+
struct nrf_cloud_coap_agnss_result result = {agnss_rest_data_buf,
336336
sizeof(agnss_rest_data_buf), 0};
337337
struct lte_lc_cells_info net_info = {0};
338338

@@ -345,7 +345,7 @@ static void agnss_requestor(struct k_work *)
345345

346346
err = nrf_cloud_coap_agnss_data_get(&request, &result);
347347
if (err) {
348-
LOG_ERR("Failed to request A-GNSS data via REST (%d).", err);
348+
LOG_ERR("Failed to request A-GNSS data via CoAP (%d).", err);
349349
return;
350350
}
351351

app/src/sm_at_nrfcloud.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ static void loc_req_wk(struct k_work *work)
290290
}
291291

292292
struct nrf_cloud_location_result result = {0};
293-
const struct nrf_cloud_rest_location_request request = {
293+
const struct nrf_cloud_coap_location_request request = {
294294
.config = NULL,
295295
.cell_info = nrfcloud_cell_pos ? &nrfcloud_cell_data : NULL,
296296
.wifi_info = nrfcloud_wifi_pos ? &nrfcloud_wifi_data : NULL};

0 commit comments

Comments
 (0)