OK I found out one of the problems with Method 1 -- the subscribe and publish topics in the new MQTT_w_UART had a forward slash in front of them in the prj.conf file so I got rid of the forward slash and now it is at least getting the subscribed MQTT packets. It should be my/subscribe/topic and not /my/subscribe/topic
Hi Didrik.
Yes - method 1 finally works, thank you. The forward slash character removal solved the last hurdle.
As for method 2 - they werent retained messages that I know of - they were sent there by me - but one clue is that even without the subscribe topic being specified, they were received anyway
The #XMQTTPUB bug in SLM should be fixed by this pull request: https://github.com/nrfconnect/sdk-nrf/pull/5876
With that PR, the SLM should no longer enter data mode unless you want it to. See also the update to the documentation: http://developer.nordicsemi.com/nRF_Connect_SDK_dev/doc/PR-5876/nrf/applications/serial_lte_modem/doc/MQTT_AT_commands.html#mqtt-publish-xmqttpub
As for how to exit data mode, the answer is to send "+++" without any CR or LF termination.
The #XMQTTPUB bug in SLM should be fixed by this pull request: https://github.com/nrfconnect/sdk-nrf/pull/5876
With that PR, the SLM should no longer enter data mode unless you want it to. See also the update to the documentation: http://developer.nordicsemi.com/nRF_Connect_SDK_dev/doc/PR-5876/nrf/applications/serial_lte_modem/doc/MQTT_AT_commands.html#mqtt-publish-xmqttpub
As for how to exit data mode, the answer is to send "+++" without any CR or LF termination.