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

NRF9160 aws_iot sample: mqtt topic add does not work

Hi,

I use the latest connect sdk 1.4.0 and modem firmware 1.2.2. If I load the default aws_iot code it does not subscribe to the topics set in "topics_list" in the code. However the device is somehow still subscriped to a topic I set with an older firmware with mqtt_simple example and still gets messages. This behaviour does not chance even after reset and completely erease of the device. 

So my quess is the topic subscription is set in the modem part and does not get reset with the aws_iot sample. What could be the issue?

Best regards

Parents
  • I tried it again with different samples on a new device and its the same. if I flash the aws_iot sample it connects, updates shadow and can send mqtt but not receive on subscribed topic. If I then flash my old mqtt sample it subscibes to the topic set in there and can receive. If I then flash again the aws_iot sample with completely different topic subscriptions it still can´t receive on them but gets messages from the topic set in the old mqtt firmware.

    Again, this topic is not set in the aws_iot firmware! So somehow it gets saved on a space in the device and survives firmware update and power loss for minutes! And the subscription in the aws_iot firmware never works!

  • Are you able to reproduce this behavior on some other hardware, like another DK or similar?

  • Hi Hakon,

    I tried now from scratch. SDK 1.4.1 with both aws_iot sample and aws_fota (with normal mqtt implementation). I tried it on a new chip nrf9160 SIBA (newest modem firmware) from our hardware Prototypes.

    If I install aws_fota and change only RTT Support, NBIOT Connection and a function for subscription, it works finde. I can talk to my device from aws via the subscribed topic.

    If I now install aws_iot (RTT enabled, NBIOT Connection) with the array to subscribe a new topic in first slot and in second slot the same topic as in aws_fota I only get response on the second topic thats the same like in fota sample. Also the same after power disconnect.

    I attached both samples here as files.

    aws_fota-aws_iot.zip

Reply
  • Hi Hakon,

    I tried now from scratch. SDK 1.4.1 with both aws_iot sample and aws_fota (with normal mqtt implementation). I tried it on a new chip nrf9160 SIBA (newest modem firmware) from our hardware Prototypes.

    If I install aws_fota and change only RTT Support, NBIOT Connection and a function for subscription, it works finde. I can talk to my device from aws via the subscribed topic.

    If I now install aws_iot (RTT enabled, NBIOT Connection) with the array to subscribe a new topic in first slot and in second slot the same topic as in aws_fota I only get response on the second topic thats the same like in fota sample. Also the same after power disconnect.

    I attached both samples here as files.

    aws_fota-aws_iot.zip

Children
No Data
Related