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

PubSub lib issue? #8

Closed
once2go opened this issue Aug 20, 2018 · 2 comments
Closed

PubSub lib issue? #8

once2go opened this issue Aug 20, 2018 · 2 comments

Comments

@once2go
Copy link

once2go commented Aug 20, 2018

Hi.
Cant figure out what the issue happen to me, seams tm it's something wrong with PubSub client but before wanna ask somebody if my setup is correct:
So, I already setup sketch with proper config: mqtt shadow, cert der, private key, even root CA.
My log:

WiFi connected
IP address:
192.168.2.73
Heap: 45744
Success to open cert file
cert loaded
Success to open private cert file
private key loaded
Success to open ca
ca loaded
Heap: 36976
Attempting MQTT connection...pm open,type:2 0
connected
hello world #1
Heap: 20680
Attempting MQTT connection...connected
hello world #2
Heap: 20680
Attempting MQTT connection...connected
hello world #3
Heap: 20680
Attempting MQTT connection...connected
hello world #4
Heap: 20680
Attempting MQTT connection...connected
hello world #5
Heap: 20680
Attempting MQTT connection...connected
hello world #6
Heap: 20680
Attempting MQTT connection...connected
hello world #7
Heap: 20680
Attempting MQTT connection...connected
hello world #8
Heap: 20680
Attempting MQTT connection...connected
hello world #9
Heap: 20680
Attempting MQTT connection...connected
hello world #10
Heap: 20680

When I check my IoT monitor status, it shows me that I have "n number of successful connection" "n number of inbound messages", but when I go to test tool and try to subscribe to "outTopic" there is no incoming messages(device is ON and messages sends looks like successfully due to UART log). I even try to send some messages to "inTopic" from test tool but nothing happened(no incoming messages on device during ON session).
My suggestion is that something wrong with PubSubClient from Library manager(my one https://pubsubclient.knolleary.net/ 2.6.0).
So if anyone still use this library with config from samples, let me may be I do something wrong.
If my suggestions is wrong, can you please advise me where I should look to fix an issue.
Thanks

@copercini
Copy link
Owner

It seems working, check if your endpoint region (for example us-west-2) is the same of the web test tool

additionally, you can try subscribe to all topics, using the wildcard #

@once2go
Copy link
Author

once2go commented Aug 21, 2018

Regenerate new certificate and its help_
Weird
Any way thanks for quick response and amazing example!

@once2go once2go closed this as completed Aug 21, 2018
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