I am evaluating nRF Connect SDK V1.5.0 for use on a new project. (I could use the added features since V1.2.0.)
Building with Segger Nordic Edition V5.34a
I updated the modem firmware to mfw_nrf9160_1.2.3
When I try to connect to the MQTT server using mqtt_simple (directly from the SDK no changes) it connects to the server receives the message. When the time is up it polls the server and is disconnected.
this is the log of the connection.
*** Booting Zephyr OS build v2.4.99-ncs1 ***
[00:00:00.211,486] <inf> mqtt_simple: The MQTT simple sample started
[00:00:00.211,486] <inf> mqtt_simple: Disabling PSM and eDRX
[00:00:00.225,250] <inf> mqtt_simple: LTE Link Connecting...
+CEREG: 2,"F401","03B9A801",7,0,0,"11100000","11100000"
+CSCON: 1
+CEREG: 1,"F401","03B9A801",7,,,"11100000","00100110"
[00:00:04.703,338] <inf> mqtt_simple: LTE Link Connected!
[00:00:04.861,968] <inf> mqtt_simple: IPv4 Address found 137.135.83.217
[00:00:05.054,199] <inf> mqtt_simple: MQTT client connected
[00:00:05.054,199] <inf> mqtt_simple: Subscribing to: my/subscribe/topic len 18
[00:00:05.144,195] <inf> mqtt_simple: SUBACK packet id: 1234
[00:00:05.534,088] <inf> mqtt_simple: MQTT PUBLISH result=0 len=13
[00:00:05.534,179] <inf> mqtt_simple: Received: hello Kevin77
[00:00:05.580,108] <inf> mqtt_simple: Publishing: hello Kevin77
[00:00:05.580,108] <inf> mqtt_simple: to topic: my/publish/topic len: 16
[00:00:05.690,185] <inf> mqtt_simple: PUBACK packet id: 46608
+CSCON: 0
+CSCON: 1
[00:01:06.603,210] <inf> mqtt_simple: MQTT client disconnected: -57
[00:01:06.603,240] <err> mqtt_simple: mqtt_input: -57
[00:01:06.603,240] <inf> mqtt_simple: Disconnecting MQTT client...
[00:01:06.603,271] <err> mqtt_simple: Could not disconnect MQTT client: -57
[00:01:06.603,271] <inf> mqtt_simple: Reconnecting in 60 seconds...
+CSCON: 0
I updated the modem firmware to mfw_nrf9160_1.2.3