Closed linqFR closed 8 years ago
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, Liusu
Thanks Liusu ! That is answering my question.
So this issue is the same as for my later issue : PLEASE update your documentation and make it precise ! It would help to spare time and energy for real issues.
As for 'retain' setting, to my opinion, it should be inhibited.
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?