According to the docs https://io.adafruit.com/api/docs/mqtt.h ... -get-topic one should send a message to ".../feed_name/get" to obtain the last published value on this topic.
This works fine when the client is connected with the clean_session flag set to true. However, I have been unable to make it work when the client does not have that flag set. Each time I send a message to the 'get' topic, the broker immediately disconnects.
I have been able to reproduce this on my desktop computer in two different languages (Dart and Toit), and have a wireshark trace that shows that the broker disconnects.
Is there anything I can do to avoid the disconnect? Is this a known limitation?
'get' on a feed disconnects when "clean session" is off
Moderators: adafruit_support_bill, adafruit
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
- floitsch_toit
- Posts: 1
- Joined: Tue Jun 21, 2022 12:53 pm
- jwcooper
- Posts: 1004
- Joined: Tue May 01, 2012 9:08 pm
Re: 'get' on a feed disconnects when "clean session" is off
I don't believe this is a known issue. I'll file a bug report internally to take a look and see if something is triggering the disconnect.
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.