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

Unable to receive messages from AWS over MQTT #9

Open
sweetillusions0 opened this issue Mar 8, 2018 · 2 comments
Open

Unable to receive messages from AWS over MQTT #9

sweetillusions0 opened this issue Mar 8, 2018 · 2 comments

Comments

@sweetillusions0
Copy link

Thanks for creating this example. It is really helpful. I can successfully connect and send messages to AWS. However, when I send a message back to ESP32 from AWS, using the topic "inTopic", I do not receive anything. Is this an issue with the script or am I missing anything?
Thanks

@shehrazjazib
Copy link

Paste this line client.onMessage(messageReceived);
before connect() method in setup() method of the script and replace receiveMessage(){} funcation with following funcation
void messageReceived(String &topic, String &payload) {
Serial.println("incoming: " + topic + " - " + payload);

@shehrazjazib
Copy link

I have same problem, i solved it by using above mentioned way.

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

2 participants