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

Mqtt client Nrf9160 Module

My nrf9160 isn't responsive to the AT commands for MQTT mentioned here. I want to know why is that so?
I've put certificates in the module from AWS-Iot core and flashed at_client example inside the nrf9160 and trying to send AT#XMQTTCON command to connect it to the broker. 

Am I missing something or 
Is this a work in progress and these commands aren't available yet? 
I want to make use to this mqtt client to connect to AWS-IoT instead of doing in in the application, I suppose that'll be possible as well.

here in or at this place; where the speaker or writer is More (Definitions, Synonyms, Translation)

Parents Reply
  • Correct me if I am wrong but in the code the macro AT_MQTTCON_CONNECT is set to 1 while in the documentation it says 

    AT#XMQTTCON=<op>[,<client_id>,<username>,<password>,<url>,<port>[,<sec_tag>]]
    
    • The <op> parameter is an integer. It can accept one of the following values:

      • 0 - Connect to the MQTT broker.

      • 1 - Disconnect from the MQTT broker.

    That seems to be contradictory. I debugged and it seemed to hit the connect case AT_MQTTCON_CONNECT case only when 1 was sent. And then it polls for CONACK where it returns error.

    So basically this is happening on nrf Connect

Children
Related