-
Notifications
You must be signed in to change notification settings - Fork 383
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Last Will troubles #61
Comments
Hi @dhamfr , Thank you very much for using AWS IoT Node.js SDK. You are right. AWS IoT currently does not support retained messages. If the retain flag is set, the broker side will close the connection. This is why the SDK itself keeps reconnecting and failing. More details can be found in the documentation here: http://docs.aws.amazon.com/iot/latest/developerguide/protocols.html Hope that answers your question. Please feel free to reopen the thread if you have more questions. Thanks, |
Thanks Liusu ! So this issue is the same as for my later issue : PLEASE update your documentation and make it precise ! As for 'retain' setting, to my opinion, it should be inhibited. |
Addressed in release v1.0.13. |
According to documentation of awsIot.thingShadow(options)
which means options of awsIot.device(options) and therefore :
So to sum up, options of awsIot.thingShadow should be :
from awsIot.thingShadow
from awsIot.device
from mqtt.Client
BUT, when i connect a thingShadow with following options:
the thing enters directly to a 'offline, close, reconnect, offline... loop, without any connect event !
After few tests, it appears that giving "retain:true" makes it work improperly !
With "retain:false", it works as expected !
Is it a bug or because AWS message broker cannot retain last wills?
The text was updated successfully, but these errors were encountered: