Serial LTE Modem - Receiving in Data Mode & MQTT

HI there, 

I'm a bit confused with how the Data Mode would work for receiving data.

Our setup / situation:

  • UART connection with the nRF9160
  • Regular AT commands work good.
  • Creating a secure MQTT connection to AWS using AT-mode, XSOCKET and XSEND / XRECV kinda works --> The part that doesn't work is receiving published data by the MQTT server because we are not listening all the time

Because of this I was thinking to use the data mode of the nRF, however I'm not quite sure what to expect as the documentation only talks in detail about sending data. 

  1. What can I expect to receive over UART when the nRF receives data and it is in data mode?
    1. Will it just put the data on the UART? Or do I need to do a XRECV anyway?
    2. Is the data followed or prefixed by something (like \r\nOK\r\n?)  
  2. I've set CONFIG_SLM_DATAMODE_URC=y , but from my understanding/experience this will only send an URC when I've sent data to the nRF modem, not when the nRF modem has completed a sent towards my MCU.
  3. I've looked at the MQTT client , but this doesn't look like a solution for us as we can only read the MQTT certificate from the security chip from our device, the nRF would be an add-on with only UART connections + some pins.

Thank you in advance!

Related