-
-
Notifications
You must be signed in to change notification settings - Fork 67
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
ESP8266 AWS web socket connection fails because of BearSSL #58
Comments
** UPDATE ** |
Hi... now it works with the most updated code from the esp8266 sdk and the other dependency libraries. you can also use it without a certificate changing the Arduino-Web-Socket with |
@odelot I want to mention that when working on ESP8266, I also added Implemented from the idea of decreasing BearSSL buffer sizes on |
@odelot
I have been using this library for over a year now to connect ESP8266 to AWS IOT over websockets without any problem what so ever. Works great, thanks for the work.
My ESP8266 core was 2.4.2
After upgrading ESP core to 2.6.3, my good old sketch can not connect to AWS anymore.
I use MQTT_MAX_PACKET_SIZE 1500
I have experimented with different lwIP and SSL settings on Arduino IDE but I admittedly don't know how to use those options very well (not much documentation or info on which lwIP to use for what etc.) but the result did not change.
I am sure this happens because of the depreciation of axTL and moving to BearSSL on 'WifiSecureClient' class on the new ESP8266 core
Here is a piece of debug trace output with some eye-opening info embedded
I dont know how to supply the missing 'authentication method' to BearrSLL and need help at this stage.
Thanks
////////////////////////////////////////////////////////////////////////////////
[WS-Client] connect wss...
[WS-Client] creating WiFiClientSecure
[WS-Client] _client connecting with host =>
**************.iot.us-east-1.amazonaws.com
[hostByName] request IP for: **************.iot.us-east-1.amazonaws.com
[hostByName] Host: ********.iot.us-east-1.amazonaws.com IP: ...
:ref 1
BSSL:_connectSSL: start connection
BSSL:Connection will fail, no authentication method is setup <= <= <= <= <=
:oom(16709)@abi.cpp:48
BSSL:_connectSSL: OOM error
[WS-Client] connection to **************.iot.us-east-1.amazonaws.com:443 failed
DEBUG_WEBSOCKET_MQTT {NOT connected}
The text was updated successfully, but these errors were encountered: