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

I can not change AWS IoT custom topics name

Hello,

I'm trying to use aws_iot example with nrf9160 DK. But I can only receive publish messages from AWS IOT console from one topic in the example, which is "my-custom-topic/example". I did try to change to different topic names, rebuild solution but new topic does not work. And the it still receives the messages from topic "my-custom-topic/example" even after I flash the new firmware with new topic name. I looked for everywhere to see if the topic is fixed somewhere. But I can not found it. Please help me solve the issue

Regards,

Hoang

Parents
  • Hi Hoang

    You may have already come across the answer to this one, but for anyone else facing this issue. 

    The default AWS IoT example code sets the connection to persistent by default. As such, changes to the subscribe topic in the firmware are not reflected when the device next connects. 

    As such, set the following to fix the issue.

    CONFIG_MQTT_CLEAN_SESSION=y
Reply
  • Hi Hoang

    You may have already come across the answer to this one, but for anyone else facing this issue. 

    The default AWS IoT example code sets the connection to persistent by default. As such, changes to the subscribe topic in the firmware are not reflected when the device next connects. 

    As such, set the following to fix the issue.

    CONFIG_MQTT_CLEAN_SESSION=y
Children
Related