Skip to content

Commit

Permalink
application: serial_lte_modem: new nRF Cloud service
Browse files Browse the repository at this point in the history
Separate nRF Cloud service from the GNSS service to allow
include/exclude of nRF Cloud services by configurating prj.conf,
and allow more nRF Cloud-specific services be added later.

New configuration CONFIG_SLM_NRF_CLOUD for nRF Cloud access.
nRF Cloud A-GPS, P-GPS and Location service to be configured
separately with lib_nrfcloud configuration items:
.Remove CONFIG_SLM_LOCATION, to use CONFIG_NRF_CLOUD_LOCATION.
.Remove CONFIG_SLM_AGPS, to use CONFIG_NRF_CLOUD_AGPS.
.Remove CONFIG_SLM_PGPS, to use CONFIG_NRF_CLOUD_PGPS.

Enable nRF Cloud A-GPS and Location service by default.

Signed-off-by: Jun Qing Zou <jun.qing.zou@nordicsemi.no>
  • Loading branch information
junqingzou committed Jun 29, 2023
1 parent 0469247 commit 29b8e8d
Show file tree
Hide file tree
Showing 15 changed files with 1,455 additions and 1,288 deletions.
1 change: 1 addition & 0 deletions applications/serial_lte_modem/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ target_sources_ifdef(CONFIG_SLM_NATIVE_TLS app PRIVATE src/slm_native_tls.c)
target_sources_ifdef(CONFIG_SLM_NATIVE_TLS app PRIVATE src/slm_at_cmng.c)

add_subdirectory_ifdef(CONFIG_SLM_GNSS src/gnss)
add_subdirectory_ifdef(CONFIG_SLM_NRF_CLOUD src/nrfcloud)
add_subdirectory_ifdef(CONFIG_SLM_FTPC src/ftp_c)
add_subdirectory_ifdef(CONFIG_SLM_MQTTC src/mqtt_c)
add_subdirectory_ifdef(CONFIG_SLM_HTTPC src/http_c)
Expand Down
10 changes: 9 additions & 1 deletion applications/serial_lte_modem/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ config SLM_AT_MODE
bool "Serial LTE Modem by raw AT mode"
default y
select AT_CMD_PARSER
select AT_MONITOR

config SLM_AT_MAX_PARAM
int "Maximum number of parameters in AT command"
Expand Down Expand Up @@ -124,7 +125,14 @@ config SLM_SMS
help
Support SMS send/receive in plain text

rsource "src/gnss/Kconfig"
config SLM_GNSS
bool "GNSS support in SLM"
default y

config SLM_NRF_CLOUD
bool "nRF Cloud support in SLM"
default y

rsource "src/ftp_c/Kconfig"
rsource "src/mqtt_c/Kconfig"
rsource "src/http_c/Kconfig"
Expand Down
1 change: 1 addition & 0 deletions applications/serial_lte_modem/doc/AT_commands_intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,4 @@ The modem-specific AT commands are documented in the `nRF91 AT Commands Referenc
TWI_AT_commands
GPIO_AT_commands
CARRIER_AT_commands
NRFCLOUD_AT_commands
Loading

0 comments on commit 29b8e8d

Please sign in to comment.