Enabling TLS on nRF7002

I have been trying to get MQTT+TLS to work on the nRF7002 DK and haven't been able to get the samples to connect to the MQTT Broker.

Is there a working MQTT TLS example?

I started off with the WiFi Station example and added the MQTT section following numerous setup.  None of which appears to work.  One thing I do notice during compilation is this warning appears:


CMake Warning at /home/ttran/ncs/v3.0.1/zephyr/CMakeLists.txt:1002 (message): No SOURCES given to Zephyr library: ..__nrf__subsys__net__lib__tls_credentials Excluding target from build.

I am not sure how to resolve this.  I have searched around for how to resolve this message but none of the resolve this.  I have tried numerous CONFIG_XXX in hopes that it will provide the "SOURCES" that the Zephyr library needs?

file:///home/ttran/sta.zip

Parents
  • The MQTT sample in NCS supports both Wi-Fi and LTE connectivity, and it can be configured to use TLS for secure MQTT communication. TLS support is enabled through overlay configuration files included in the sample. When using Wi-Fi (for example, with the nRF7002 DK), you can enable TLS and connect to brokers such as test.mosquitto.org on port 8883. The sample output confirms that TLS is active during the MQTT session over Wi-Fi, as shown by the log line: TLS: Yes MQTT sample description Sample output.
    Additionally, the Nordic Developer Academy and documentation provide step-by-step exercises on enabling TLS for MQTT over Wi-Fi, including the necessary Kconfig options and certificate provisioning Wi-Fi Fundamentals Exercise as part of the Lesson 4 – MQTT over Wi-Fi.
Reply
  • The MQTT sample in NCS supports both Wi-Fi and LTE connectivity, and it can be configured to use TLS for secure MQTT communication. TLS support is enabled through overlay configuration files included in the sample. When using Wi-Fi (for example, with the nRF7002 DK), you can enable TLS and connect to brokers such as test.mosquitto.org on port 8883. The sample output confirms that TLS is active during the MQTT session over Wi-Fi, as shown by the log line: TLS: Yes MQTT sample description Sample output.
    Additionally, the Nordic Developer Academy and documentation provide step-by-step exercises on enabling TLS for MQTT over Wi-Fi, including the necessary Kconfig options and certificate provisioning Wi-Fi Fundamentals Exercise as part of the Lesson 4 – MQTT over Wi-Fi.
Children
No Data
Related