Environment:
- SDK v15.2.0
- Raspberry Pi 3 (as a border router - Jessie).
- MQTT broker in Linux PC (Mosquitto)
- nRF52840 as a MQTT Publisher.
Without TLS-PSK, MQTT publisher works fine. While using TLS-PSK, the broker disconnects from the MQTT publisher after sending CONNACK messages. I am facing this same issue.
Note: When seeing the prints from nRF in the serial port, I have seen CONNACK message with return value 0 after the broker sends disconnect message due to the timeout. I think the issue will be in tls_read functionality as it was not able to read the data in time. Can someone help to solve this issue?