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!

Reply
  • 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!

Children
Related