Skip to content

Commit 8f5ecb5

Browse files
pascal-nordicrlubos
authored andcommitted
net: lib: nrf_cloud: Fix Kconfig
Fixed extra Kconfig options for non nrf Cloud projects. Signed-off-by: Pascal Hernandez <[email protected]>
1 parent 915f2b7 commit 8f5ecb5

File tree

27 files changed

+62
-16
lines changed

27 files changed

+62
-16
lines changed

applications/asset_tracker_v2/prj.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,6 @@ CONFIG_LOCATION_LOG_LEVEL_WRN=y
108108
CONFIG_NRF_CLOUD_MQTT=y
109109
CONFIG_HW_ID_LIBRARY=y
110110
CONFIG_HW_ID_LIBRARY_SOURCE_IMEI=y
111+
112+
# nRF Cloud support
113+
CONFIG_NRF_CLOUD=y

applications/serial_lte_modem/prj.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ CONFIG_SETTINGS_NVS=y
8484
CONFIG_NVS=y
8585

8686
# nRF Cloud
87+
CONFIG_NRF_CLOUD=y
8788
CONFIG_NRF_CLOUD_MQTT=y
8889
CONFIG_NRF_CLOUD_FOTA=n
8990
CONFIG_NRF_CLOUD_AGNSS=y

doc/nrf/libraries/modem/location.rst

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -247,11 +247,14 @@ Configure the following options to enable location methods of your choice:
247247
* :kconfig:option:`CONFIG_LOCATION_METHOD_CELLULAR` - Enables cellular location method.
248248
* :kconfig:option:`CONFIG_LOCATION_METHOD_WIFI` - Enables Wi-Fi location method.
249249

250-
The following options control the use of GNSS assistance data:
250+
For external GNSS assistance data usage, set the :kconfig:option:`CONFIG_LOCATION_SERVICE_EXTERNAL` Kconfig option.
251+
It enables A-GNSS and P-GPS data retrieval, and cellular cell information and Wi-Fi APs sending to an external source, implemented separately by the application.
252+
If enabled, the library triggers a :c:enum:`LOCATION_EVT_GNSS_ASSISTANCE_REQUEST`, :c:enum:`LOCATION_EVT_GNSS_PREDICTION_REQUEST` or :c:enum:`LOCATION_EVT_CLOUD_LOCATION_EXT_REQUEST` event when additional information is needed.
253+
Once the application has obtained necessary information, it must call the :c:func:`location_agnss_data_process`, the :c:func:`location_pgps_data_process`, or the :c:func:`location_cloud_location_ext_result_set` function, respectively, to feed it into the library.
251254

252-
* :kconfig:option:`CONFIG_LOCATION_SERVICE_EXTERNAL` - Enables A-GNSS and P-GPS data retrieval, and cellular cell information and Wi-Fi APs sending to an external source, implemented separately by the application.
253-
If enabled, the library triggers a :c:enum:`LOCATION_EVT_GNSS_ASSISTANCE_REQUEST`, :c:enum:`LOCATION_EVT_GNSS_PREDICTION_REQUEST` or :c:enum:`LOCATION_EVT_CLOUD_LOCATION_EXT_REQUEST` event when additional information is needed.
254-
Once the application has obtained necessary information, it must call the :c:func:`location_agnss_data_process`, the :c:func:`location_pgps_data_process`, or the :c:func:`location_cloud_location_ext_result_set` function, respectively, to feed it into the library.
255+
Set the following Kconfig options to retrieve GNSS assistance data from `nRF Cloud`_:
256+
257+
* :kconfig:option:`CONFIG_NRF_CLOUD` - Enables `nRF Cloud`_ support.
255258
* :kconfig:option:`CONFIG_NRF_CLOUD_AGNSS` - Enables A-GNSS data retrieval from `nRF Cloud`_.
256259
* :kconfig:option:`CONFIG_NRF_CLOUD_PGPS` - Enables P-GPS data retrieval from `nRF Cloud`_.
257260
* :kconfig:option:`CONFIG_NRF_CLOUD_AGNSS_FILTERED` - Reduces assistance size by only downloading ephemerides for visible satellites.
@@ -270,7 +273,7 @@ The following options control the sensitivity of obstructed visibility detection
270273
These options set the threshold for how many satellites need to be found in how long a time period in order to conclude that the device is likely not indoors.
271274
Configuring the obstructed visibility detection is always a tradeoff between power consumption and the accuracy of detection.
272275

273-
The following options control the transport method used with `nRF Cloud`_:
276+
To enable the transport method, set the :kconfig:option:`CONFIG_NRF_CLOUD` Kconfig option and select one of the following options:
274277

275278
* :kconfig:option:`CONFIG_NRF_CLOUD_REST` - Uses REST APIs to communicate with `nRF Cloud`_ if :kconfig:option:`CONFIG_NRF_CLOUD_MQTT` is not set.
276279
* :kconfig:option:`CONFIG_NRF_CLOUD_MQTT` - Uses MQTT transport to communicate with `nRF Cloud`_.

doc/nrf/libraries/networking/lwm2m_location_assistance.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ In such case, the device must resend the request after the previous request has
150150
Configuration
151151
*************
152152

153-
To enable location assistance, configure either or both of the following Kconfig options:
153+
To enable location assistance, set the :kconfig:option:`CONFIG_NRF_CLOUD` Kconfig option and configure one or both of the following Kconfig options:
154154

155155
* :kconfig:option:`CONFIG_LWM2M_CLIENT_UTILS_GNSS_ASSIST_OBJ_SUPPORT`
156156
* :kconfig:option:`CONFIG_LWM2M_CLIENT_UTILS_GROUND_FIX_OBJ_SUPPORT`

doc/nrf/libraries/networking/nrf_cloud.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ The current implementation supports the following technologies:
2525

2626
Initializing
2727
************
28-
Before using any other APIs of the module, the application must call the :c:func:`nrf_cloud_init` function.
28+
29+
Before using any other APIs of the module, set the :kconfig:option:`CONFIG_NRF_CLOUD` Kconfig option and call the :c:func:`nrf_cloud_init` function in the application.
2930
If this call fails, the application must not use any functions of the module.
3031

3132
.. note::

doc/nrf/libraries/networking/nrf_cloud_agnss.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ While ionospheric corrections can also be downloaded from the satellite broadcas
2828
Configuration
2929
*************
3030

31-
Configure the following Kconfig options to enable or disable the use of this library:
31+
To enable this library, set the :kconfig:option:`CONFIG_NRF_CLOUD` Kconfig option and configure the following options:
3232

3333
* :kconfig:option:`CONFIG_NRF_CLOUD_AGNSS`
3434
* :kconfig:option:`CONFIG_NRF_CLOUD_MQTT`, :kconfig:option:`CONFIG_NRF_CLOUD_REST`, or :kconfig:option:`CONFIG_NRF_CLOUD_COAP`

doc/nrf/libraries/networking/nrf_cloud_alert.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ The :c:func:`nrf_cloud_rest_alert_send` function initiates the connection as nee
5353
Configuration
5454
*************
5555

56-
Configure the following Kconfig options to enable or disable the library and to select the data transport method:
56+
To enable this library, set the :kconfig:option:`CONFIG_NRF_CLOUD` Kconfig option and configure the following options to select the data transport method:
5757

5858
* :kconfig:option:`CONFIG_NRF_CLOUD_ALERT`
5959
* :kconfig:option:`CONFIG_NRF_CLOUD_MQTT`, :kconfig:option:`CONFIG_NRF_CLOUD_REST`, or :kconfig:option:`CONFIG_NRF_CLOUD_COAP`.

doc/nrf/libraries/networking/nrf_cloud_coap.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Connect the device to the network before calling the :c:func:`nrf_cloud_coap_con
6262
Configuration
6363
*************
6464

65-
Configure the :kconfig:option:`CONFIG_NRF_CLOUD_COAP` option to enable or disable the use of this library.
65+
To enable this library, set the :kconfig:option:`CONFIG_NRF_CLOUD` and :kconfig:option:`CONFIG_NRF_CLOUD_COAP` Kconfig options.
6666

6767
Additionally, the following Kconfig options are available:
6868

doc/nrf/libraries/networking/nrf_cloud_location.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ This library is an enhancement to the :ref:`lib_nrf_cloud` library.
1717
Configuration
1818
*************
1919

20-
Configure the :kconfig:option:`CONFIG_NRF_CLOUD_LOCATION` Kconfig option to enable or disable the use of this library.
20+
To enable this library, set the :kconfig:option:`CONFIG_NRF_CLOUD` and :kconfig:option:`CONFIG_NRF_CLOUD_LOCATION` Kconfig options.
2121

2222
Request and process location data
2323
*********************************

doc/nrf/libraries/networking/nrf_cloud_log.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ The :c:func:`nrf_cloud_rest_log_send` function initiates the connection as neede
7575
Configuration
7676
*************
7777

78-
Configure one or both of the following Kconfig options to enable direct log messages or the logging backend:
78+
To enable direct log messages or the logging backend, set the :kconfig:option:`CONFIG_NRF_CLOUD` Kconfig option and one or both of the following options:
7979

8080
* :kconfig:option:`CONFIG_NRF_CLOUD_LOG_DIRECT`
8181
* :kconfig:option:`CONFIG_NRF_CLOUD_LOG_BACKEND`

0 commit comments

Comments
 (0)