[p4a] Use new error codes and normalise capitalisation.
@@ -43,30 +43,27 @@ GATT_STATUS_STRINGS = {
# https://www.bluetooth.com/specifications/bluetooth-core-specification/
**bleak.exc.CONTROLLER_ERROR_CODES,
**bleak.exc.PROTOCOL_ERROR_CODES,
- 0x007F: "GATT_TOO_SHORT",
- 0x0080: "GATT_NO_RESOURCES",
- 0x0081: "GATT_INTERNAL_ERROR",
- 0x0082: "GATT_WRONG_STATE",
- 0x0083: "GATT_DB_FULL",
- 0x0084: "GATT_BUSY",
- 0x0085: "GATT_ERROR",
- 0x0086: "GATT_CMD_STARTED",
- 0x0087: "GATT_ILLEGAL_PARAMETER",
- 0x0088: "GATT_PENDING",
- 0x0089: "GATT_AUTH_FAIL",
- 0x008A: "GATT_MORE",
- 0x008B: "GATT_INVALID_CFG",
- 0x008C: "GATT_SERVICE_STARTED",
- 0x008D: "GATT_ENCRYPED_NO_MITM",
- 0x008E: "GATT_NOT_ENCRYPTED",
- 0x008F: "GATT_CONGESTED",
- 0x0090: "GATT_DUP_REG",
- 0x0091: "GATT_ALREADY_OPEN",
- 0x0092: "GATT_CANCEL",
- 0x00FD: "GATT_CCC_CFG_ERR",
- 0x00FE: "GATT_PRC_IN_PROGRESS",
- 0x00FF: "GATT_OUT_OF_RANGE",
- 0x0101: "GATT_FAILURE",
+ 0x007F: "Too Short",
+ 0x0080: "No Resources",
+ 0x0081: "Internal Error",
+ 0x0082: "Wrong State",
+ 0x0083: "DB Full",
+ 0x0084: "Busy",
+ 0x0085: "Error",
+ 0x0086: "Command Started",
+ 0x0087: "Illegal Parameter",
+ 0x0088: "Pending",
+ 0x0089: "Auth Failure",
+ 0x008A: "More",
+ 0x008B: "Invalid Configuration",
+ 0x008C: "Service Started",
+ 0x008D: "Encrypted No MITM",
+ 0x008E: "Not Encrypted",
+ 0x008F: "Congested",
+ 0x0090: "Duplicate Reg",
+ 0x0091: "Already Open",
+ 0x0092: "Cancel",
+ 0x0101: "Failure",
}
CHARACTERISTIC_PROPERTY_DBUS_NAMES = {
