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

mqtt_simple error -57

Hi guys, I am developing an mqtt-based app using board nrf9160. I tested the mqtt_simple example but it does not work. Here is my setup.

+ Broker server: test.mosquitto.org --> I have tested this broker and it works all time
+ nrf9160 firmware version is 1.2, I have tested with both NRF SDK ver1.2 and current master version

I always got this error when checking log from Link monitor:
The MQTT simple sample startedLTE Link Connecting ...
+CEREG: 2,"A794","047EFC15",9,0,0,"11100000","11100000"
+CEREG: 1,"A794","047EFC15",9,,,"11100000","11100000"
LTE Link Connected!
IPv4 Address found 5.196.95.208
+CEREG: 1,"A794","047EFC17",9,,,"11100000","11100000"
+CEREG: 1,"A794","047EFC15",9,,,"11100000","11100000"
ERROR: mqtt_live -57
Disconnecting MQTT client...
Could not disconnect MQTT client. Error: -57

I tested many times, LTE connection is ok, server is ok but mqtt_live always shows error ...

Thanks you very much for your help

Parents Reply Children
No Data
Related