Skip to content
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

Aws-mqtt-websockets device stopped working #44

Open
virgilioaray opened this issue Aug 17, 2018 · 3 comments
Open

Aws-mqtt-websockets device stopped working #44

virgilioaray opened this issue Aug 17, 2018 · 3 comments

Comments

@virgilioaray
Copy link

Hello, something very strange happened to me, for months I was running an iot device based on ESP8266 that was connected (by aws-mqtt-websockets) to AWS to read instructions from the shadow of a thing, but since yesterday it does not work, I thought it was the hardware but everything is fine, checking the programming I realize that I can no longer establish the connection to the server websocket, I checked the credentials (IAM) and I see that they have 183 days of creation, so I tried new credentials but the problem was not solved. Any ideas or suggestions?

@odelot
Copy link
Owner

odelot commented Aug 18, 2018

strange.... my devices are working normally. have you reviewed the permission in the user's policy?

@WeaVaer
Copy link
Contributor

WeaVaer commented Sep 2, 2018

Exactly the same thing happened to me. My code was working by the end May 2018 and I left it there.
After 3 months without doing any modification to my sketch or lib setup whatsoever, I gave it another go but got all the fancy error messages mentioned here to my frustration.
After fishing around for a remedy and trying many things that has been suggested here, finally the solution appeared in my case.
I had upgraded all the dependency libs in this repo but that didn't work.
Finally after upgrading my Arduino ESP8266 core lib to 2.4.2 from 2.3.0, everything started to work now.
I think both the lib and ESP8266 core upgrades did the job.
FYI

@b-n
Copy link

b-n commented Jan 8, 2019

I was getting a similar problem, and it looks like AWS might have changed their message that was being sent on update/accepted. PubSubClient has a limit of 128 characters by default, and it looks like it doesn't like it when a message is longer than that. Putting #define MQTT_MAX_PACKET_SIZE 512 at the top before the #include <PubSubClient.h> should make life a bit easier.

The default message from this repo causes a response of 193 characters from AWS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants