1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-17 10:42:21 +01:00

Fix socket connection closed not detected (#2587)

This commit is contained in:
Otto Winter
2021-10-22 10:46:44 +02:00
committed by GitHub
parent 68c8547067
commit 9220d9fc52
5 changed files with 53 additions and 15 deletions

View File

@@ -53,6 +53,7 @@ enum class APIError : int {
HANDSHAKESTATE_SETUP_FAILED = 1019,
HANDSHAKESTATE_SPLIT_FAILED = 1020,
BAD_HANDSHAKE_ERROR_BYTE = 1021,
CONNECTION_CLOSED = 1022,
};
const char *api_error_to_str(APIError err);