Skip to content

Commit 58a3c26

Browse files
committed
app: Add CoAP client
Add CoAP client to the Serial Modem application. Jira: SM-225 Signed-off-by: Juha Ylinen <juha.ylinen@nordicsemi.no>
1 parent be01b94 commit 58a3c26

6 files changed

Lines changed: 1418 additions & 0 deletions

File tree

app/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ target_sources_ifdef(CONFIG_SM_CMUX app PRIVATE src/sm_cmux.c)
2929
target_sources_ifdef(CONFIG_SM_GNSS app PRIVATE src/sm_at_gnss.c)
3030
target_sources_ifdef(CONFIG_SM_NRF_CLOUD app PRIVATE src/sm_at_nrfcloud.c)
3131
target_sources_ifdef(CONFIG_SM_MQTTC app PRIVATE src/sm_at_mqtt.c)
32+
target_sources_ifdef(CONFIG_SM_COAP app PRIVATE src/sm_at_coap.c)
3233
target_sources_ifdef(CONFIG_SM_HTTPC app PRIVATE src/sm_at_httpc.c)
3334
target_sources_ifdef(CONFIG_SM_MODEM_TRACE_BACKEND_CMUX app PRIVATE src/sm_trace_backend_cmux.c)
3435
target_sources_ifdef(CONFIG_SM_MODEM_TRACE_BACKEND_UART app PRIVATE src/sm_trace_backend_uart.c)

app/Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,15 @@ config SM_NRF_CLOUD_LOCATION
266266
Enable the nRF Cloud Location service for cloud-assisted geolocation.
267267
Supports cellular and Wi-Fi positioning.
268268

269+
config SM_COAP
270+
bool "CoAP client support"
271+
default y
272+
select COAP
273+
select COAP_CLIENT
274+
select EXPERIMENTAL
275+
help
276+
Enable CoAP client AT commands for making CoAP requests.
277+
269278
config SM_MQTTC
270279
bool "MQTT client support"
271280
default y

app/overlay-nrf-device-provisioning.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ CONFIG_NRF_PROVISIONING_ROOT_CA_SEC_TAG=42384
1212
CONFIG_NRF_PROVISIONING_PROVIDE_ATTESTATION_TOKEN=y
1313
CONFIG_NRF_PROVISIONING_LOG_LEVEL_INF=y
1414

15+
# Allow more CoAP client instances to support simultaneous provisioning and AT#XCOAPCREQ requests.
16+
CONFIG_COAP_CLIENT_MAX_INSTANCES=3
17+
1518
# Timeout for waiting for the modem to enter the desired connectivity state during provisioning.
1619
CONFIG_NRF_PROVISIONING_MODEM_STATE_WAIT_TIMEOUT_SECONDS=120
1720

0 commit comments

Comments
 (0)