This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF9160 MQTT over TLS with v1.0.0 FW and ncs

Hi!

This is possibly some variation of what others have seen, e.g., in ticket 232629.

I am using several custom boards and have updated everything to the latest versions:

1. The v1.0.0 firmware

2. The v10.2.1 Command-Line-Tools that install v6.44e of Segger J-Link

3. The v3.0.0 nRF Connect for desktop with the latest v1.2.0 Programmer app

4. The v14.8 Segger Embedded Studio for Nordic

5. The v1.0.0 ncs

The apps at_client and simple_mqtt work fine, but a modification of simple_mqtt that uses TLS no longer works. I am not runniing the exact same code as this https://github.com/joakimtoe/fw-nrfconnect-nrf/tree/36532a8ca60bf7139a988b5cbb4e6cb47948a9fa/samples/nrf9160/mqtt_simple, but very similar.

Unlike 232629, I do get a connection (and IP address), but the call to mqtt_connect fails with ERROR: mqtt_connect -45. Trying to trace, the problem seems to occur in the call of mqtt_client_tls_connect.

When I change to using ncs v0.4.0 (everything else as above), everything works fine.

What can I do?

Best regards,

Per

Parents Reply Children
Related