mirror of
https://github.com/esphome/aioesphomeapi.git
synced 2024-12-22 16:48:04 +01:00
Add a mapping for ESP_GATT_ERROR (#296)
This commit is contained in:
parent
0d04b1b02d
commit
6ea1da7620
@ -13,6 +13,7 @@ class BLEConnectionError(IntEnum):
|
||||
ESP_GATT_CONN_TERMINATE_LOCAL_HOST = 0x16
|
||||
ESP_GATT_CONN_FAIL_ESTABLISH = 0x3E
|
||||
ESP_GATT_CONN_LMP_TIMEOUT = 0x22
|
||||
ESP_GATT_ERROR = 0x85
|
||||
ESP_GATT_CONN_CONN_CANCEL = 0x0100
|
||||
ESP_GATT_CONN_NONE = 0x0101
|
||||
|
||||
@ -25,6 +26,7 @@ ESP_CONNECTION_ERROR_DESCRIPTION = {
|
||||
BLEConnectionError.ESP_GATT_CONN_TERMINATE_LOCAL_HOST: "Connection terminated by local host",
|
||||
BLEConnectionError.ESP_GATT_CONN_FAIL_ESTABLISH: "Connection failed to establish",
|
||||
BLEConnectionError.ESP_GATT_CONN_LMP_TIMEOUT: "Connection failed due to LMP response timeout",
|
||||
BLEConnectionError.ESP_GATT_ERROR: "Connection failed due to GATT operation error",
|
||||
BLEConnectionError.ESP_GATT_CONN_CONN_CANCEL: "Connection cancelled",
|
||||
BLEConnectionError.ESP_GATT_CONN_NONE: "No connection to cancel",
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user