Skip to content

Commit 52c59d9

Browse files
pascal-nordicnordicjm
authored andcommitted
samples: cellular: Add modem JWT enabling to MQTT samples
Enabling CONFIG_MODEM_JWT in prj.conf is necessary for using UUID as the device ID. This dependency was absent in a couple of MQTT samples, causing the compilation to discard UUID in favor of IMEI as the device ID. Jira: IRIS-10210 Signed-off-by: Pascal Hernandez <[email protected]>
1 parent 4165d18 commit 52c59d9

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,10 @@ Bluetooth Fast Pair samples
252252
Cellular samples
253253
----------------
254254

255-
|no_changes_yet_note|
255+
* :ref:`nrf_cloud_mqtt_fota` and :ref:`nrf_cloud_mqtt_device_message` samples:
256+
257+
* Added support for JWT authentication by enabling the :kconfig:option:`CONFIG_MODEM_JWT` Kconfig option.
258+
Enabling this option in the :file:`prj.conf` is necessary for using UUID as the device ID.
256259

257260
Cryptography samples
258261
--------------------

samples/cellular/nrf_cloud_mqtt_device_message/prj.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ CONFIG_NRF_CLOUD=y
1212
CONFIG_NRF_CLOUD_MQTT=y
1313
CONFIG_NRF_CLOUD_CHECK_CREDENTIALS=y
1414
CONFIG_NRF_CLOUD_CLIENT_ID_SRC_INTERNAL_UUID=y
15+
CONFIG_MODEM_JWT=y
1516

1617
# MQTT
1718
CONFIG_MQTT_KEEPALIVE=120

samples/cellular/nrf_cloud_mqtt_fota/prj.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ CONFIG_NRF_CLOUD=y
1212
CONFIG_NRF_CLOUD_MQTT=y
1313
CONFIG_NRF_CLOUD_CHECK_CREDENTIALS=y
1414
CONFIG_NRF_CLOUD_CLIENT_ID_SRC_INTERNAL_UUID=y
15+
CONFIG_MODEM_JWT=y
1516

1617
# MQTT
1718
CONFIG_MQTT_KEEPALIVE=120

0 commit comments

Comments
 (0)