-
Notifications
You must be signed in to change notification settings - Fork 13.3k
TLS Encrypted alert received after MQTT KEEPALIVE sent #3411
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
Turned on TLS debug & saw the following... Typical sequence is (I've reduced the KEEPALIVE time to 5 seconds, publishing every second): Now & then I see the following: |
This seems to be same/related issue as #3002. It looks like the sequence of events is like this:
There is a proposed PR (#3019) which works around this problem. |
That does sound like a possibility. The only incoming data in my code are the KEEPALIVE responses. Would #3002 happen in that scenario? |
The fix for this has been implemented in #4024. Please try the latest git version. |
Closing this due to lack of feedback and bearssl integration. |
Basic Infos
TLS Encrypted alert received after MQTT KEEPALIVE sent
(Also posted in the PubSubClient repo)
Hardware
Hardware: ESP-12e
Core Version: ?2.1.0-rc2?
Description
Problem description

Sometimes I get a TLS Encrypted alert received after MQTT KEEPALIVE being sent.
I use the WifiSecure object successfully with my PubSubClient MQTT app. However occasionally I get a TLS Encrypted Alert which arrives in the MQTT data stream & breaks the connection to the broker. It only happens in response to a KEEPALIVE being sent (variable, but roughly every 10-20 PINGREQs) and never happens with regular MQTT data traffic and happens with both brokers (Bluemix & Mosquitto) that I have tried.
Settings in IDE
Module: Wemos D1 & Mini
Flash Size: 4MB
CPU Frequency: 80Mhz
Upload Using: SERIAL
The text was updated successfully, but these errors were encountered: