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 IoT shadow not working #7

Open
martin-vl opened this issue Jun 17, 2018 · 4 comments
Open

AWS IoT shadow not working #7

martin-vl opened this issue Jun 17, 2018 · 4 comments

Comments

@martin-vl
Copy link

martin-vl commented Jun 17, 2018

I tested the mqtt_x509_DER example and works really nice. Only I am not receiving the shadow messages. Does someone knows what the reason could be?

Via the AWS IoT test console I send the following to the topic "$aws/things/iotTestDevice3/shadow/update":
{ "state" : { "desired" : { "light" : 1 } } }

In the AWS IoT console I see messages on .../shadow/update and .../shadow/update/delta. But when I subscribe with my ESP to "$aws/things/iotTestDevice3/shadow/update/delta" or "#" I don't receive any thing.

I also tested with the Python SDK and started the ThingShadowEcho.py and there it works fine, so the policy settings in AWS IoT are fine.

Is this a bug? Or I am doing something wrong?

@cjessett
Copy link

cjessett commented Jun 21, 2018

I am seeing this behavior as well. Also, when I publish directly to
$aws/things/<thing-name>/shadow/update/delta through the AWS console, my device does receive the message.

@martin-vl
Copy link
Author

But you are also not receiving a delta when you do an update?

@martin-vl
Copy link
Author

The issue is solved by increasing the max package size.

Change line 26 in PubSubClient.h file to something like:
#define MQTT_MAX_PACKET_SIZE 1000

@lucasltv
Copy link

MQTT_MAX_PACKET_SIZE

Just update via setBufferSize

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

3 participants