-
Notifications
You must be signed in to change notification settings - Fork 50
Stopped working with AWS MQTT #3
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
Comments
My ESP8266 is in use for a project, but I bought a new one and in some days will test these things and update the repository with more clean instructions |
@copercini thanks for your reply. I'm working on client project and tomorrow is the delivery date. As the library stopped working, I'm not able to deliver it on time. |
Did you changed something in your CA file? |
No. I have not done any changes. Already tried the erase and reupload. But no luck. |
So enable debug level: |
Due to JimmyTai's library I changed my Arduino configuration. I'll change it again and send it to you by Monday. With JimmyTai's library and your code (there is some little changes like no need to upload CA certificate etc) I'm getting following on serial monitor.
Tomorrow I'll try same on fresh system and let you know the result. Thanks |
Probably you are running out of the heap. Try just the example, without the rest of code. |
Hello, I deleted all the version and did a fresh install.
|
After sometime, I get following error in compilation. I'm not able to upload the code to the device.
|
Solved above error (my last comment) by replacing
|
Update; Error
Decoded String
|
Hello, Did you get any change to check it with ESP? Till now I've tried many ways but not working, I read almost all threads but no luch. Now my job is in risk :( Still getting errors. Can you please help me? |
I tried but it doesn't work in my board. You can try https://github.com/odelot/aws-mqtt-websockets it's working for me in the last year |
Hi @waghekapil , Could you try not to load CA. In my case, I only load certification and private key and the code works fine. |
Hi @JimmyTai , I tried without uploading CA, it is still not connecting. I'm using Esp8266-2.4.0-rc1 version with Arduino 1.8.3.
current output:
|
@copercini Thanks! and @JimmyTai Thanks! you too for the help Finally https://github.com/odelot/aws-mqtt-websockets worked for me. Ithink it is doing MQTT Over the WebSocket Protocol. Is it true? I have a doubt: Well thanks! again :) You both saved me 👍 |
According the official document, AWS IoT Websocket use Sigv4 as the authorization. And there is some description from Amozong. When using AWS Signature Version 4 with AWS IoT, clients must support the following in their TLS implementation:
I think it also use TLS1.2 too, because I saw the same key exchange step when I turn on debug level with TLS. According my experiment, AWS IoT through MQTT or Websocket spend around 8 second during connecting process. I am puzzled by this problem for a long time. |
I made some changes in the repo today, now the things seems work fine |
Hi All, I started make some tests today, but I seeing the same error, I have a doubt, I need to create CA and also convert it to a DER format and upload ??? Here the errors connected with test, channel 1 |
@copercini thanks for update. Currently I'm working with WebSocket option. Project is under development. I'll check it and let you know the outcome. @earmero I think yes. You have to upload the CA in DER formate. |
Hi Copercini, I used your last code and I am getting the same error.
Does your code still work with you? My board is a WeMOS D1 |
Hi Copercini, I'm also getting same error. Can you please look into this? I'm using your suggested library https://github.com/odelot/aws-mqtt-websockets . But, it is taking too much Heap Memory and I'm not able to run IR operations. Your library is NOT eating too much memory. Thanks :) |
I was able to connect after modifying a hard coded timeout in the WifiClientSecure class. See esp8266/Arduino#3944 |
Hello,
It was working fine till last week. Today I found that same code is stopped working. Here is the serial monitor text:
I checked everything at AWS portal and in my code and certificated but no luck.
Please help me to solve this issue.
Full code is here. Certificates were converted to DER and uploaded to used through arduino-esp8266fs-plugin.
The text was updated successfully, but these errors were encountered: