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

Failed to connect with aws iot #41

Open
ravikarthi opened this issue Jun 30, 2018 · 1 comment
Open

Failed to connect with aws iot #41

ravikarthi opened this issue Jun 30, 2018 · 1 comment

Comments

@ravikarthi
Copy link

wss://xxxxxxx.xxxxxx.amazonaws.com/mqtt

Here I have used above end point for the mqtt web socket server as per the amazon's document.
but the problem is I can't connect to the aws.
my program is trying to connect more than 20 times .. it prints as below

client id function has executedclient Id:⸮a2.⸮⸮⸮K⸮⸮⸮�:���EP⸮
��
failed, rc=-21229389 - conn: 24 - (39096)
client id function has executedclient Id:⸮⸮Z⸮d⸮6⸮⸮GG�z⸮⸮⸮.⸮
⸮⸮l
failed, rc=-21280398 - conn: 25 - (39064)
client id function has executedclient Id:�⸮U⸮XZ⸮�⸮⸮1⸮⸮⸮�⸮w�⸮⸮Tm
failed, rc=-21331409 - conn: 26 - (39032)
client id function has executedclient Id:r⸮⸮⸮\��B⸮�⸮⸮⸮4⸮q⸮5ʫ⸮
failed, rc=-21382421 - conn: 27 - (39000)
client id function has executedclient Id:⸮⸮,�⸮⸮⸮⸮⸮YIW⸮v⸮⸮8⸮⸮m⸮�
failed, rc=-21433928 - conn: 28 - (38928)
client id function has executedclient Id:⸮�⸮⸮⸮
S⸮⸮D�⸮G⸮⸮�Ll⸮⸮⸮
failed, rc=-21484938 - conn: 29 - (38936)
client id function has executedclient Id:⸮⸮**⸮QB,>⸮⸮⸮⸮⸮�⸮⸮�T43t

Kindly do the needful.

@davidOSUL
Copy link

davidOSUL commented Jan 26, 2020

I know this is old but to anyone else reading this... make sure you have the versions of the sdk, etc. as specified in the README. ("1.2.0 - tested with arduinoWebSockets v.2.1.0, arduino/esp sdk 2.4.1 and pubsubclient version v2.6.0"). This fixed this problem for me. (also did this: #44 (comment))

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