You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/common/customization.md
+105Lines changed: 105 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -424,3 +424,108 @@ The dummy module is now ready to use. It provides the following functionality:
424
424
To test the module, send a `DUMMY_SAMPLE_REQUEST` message to its zbus channel. The module will respond with a `DUMMY_SAMPLE_RESPONSE` containing the incremented counter value.
425
425
426
426
This dummy module serves as a template that you can extend to implement more complex functionality. You can add additional message types, state variables, and processing logic as needed for your specific use case.
427
+
428
+
## Using a different Cloud
429
+
430
+
To connect to a generic MQTT server using the Asset Tracker Template, you can use the example cloud module provided under `examples/modules/cloud`. This module replaces the default nRF Cloud CoAP-based cloud integration with a flexible MQTT client implementation.
431
+
432
+
### Overview
433
+
434
+
-**Location and FOTA**: These features are deactivated when using the example MQTT module because they depend on nRF Cloud CoAP.
435
+
-**FOTA and LOCATION channels**: The MQTT cloud module provides stub channel declarations for FOTA and LOCATION to avoid build errors. You can implement your own FOTA and LOCATION modules based on your chosen cloud service if needed.
436
+
-**MQTT Client default configurations:**
437
+
438
+
-**Broker hostname:** mqtt.nordicsemi.academy
439
+
-**Port:** 8883
440
+
-**TLS:** Yes
441
+
-**Authentication:** Server only
442
+
-**CA:** modules/examples/cloud/creds/ca-cert.pem
443
+
-**Device ID** IMEI
444
+
-**Subscribed topic** imei/att-pub-topic
445
+
-**Publishing toptic** imei/att-sub-topic
446
+
447
+
The default configuration does not require/enable mutual authentication meaning that the device does not authenticate itself to the server.
448
+
That would require a device certificate/private key pair. However, the server is authenticated using the server certificate `ca-cert.pem`located in the module example folder.
449
+
450
+
### Configuration
451
+
452
+
Configurations for the MQTT stack can be set in the `overlay-mqtt.conf` file and Kconfig options defined in `examples/modules/cloud/Kconfig.cloud_mqtt`.
453
+
Some of the available options for controlling the MQTT module are:
0 commit comments