Skip to content

Commit

Permalink
Added more error code descriptions (#543)
Browse files Browse the repository at this point in the history
  • Loading branch information
dariuszseweryn authored Feb 15, 2019
1 parent 80baae0 commit faded23
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class GattStatusParser {
aMap.put(0x05, "GATT_INSUF_AUTHENTICATION");
aMap.put(0x06, "GATT_REQ_NOT_SUPPORTED");
aMap.put(0x07, "GATT_INVALID_OFFSET");
aMap.put(0x08, "GATT_INSUF_AUTHORIZATION");
aMap.put(0x08, "GATT_INSUF_AUTHORIZATION or GATT_CONN_TIMEOUT");
aMap.put(0x09, "GATT_PREPARE_Q_FULL");
aMap.put(0x0a, "GATT_NOT_FOUND");
aMap.put(0x0b, "GATT_NOT_LONG");
Expand All @@ -60,6 +60,11 @@ public class GattStatusParser {
aMap.put(0x10, "GATT_UNSUPPORT_GRP_TYPE");
aMap.put(0x11, "GATT_INSUF_RESOURCE");

aMap.put(0x13, "GATT_CONN_TERMINATE_PEER_USER");
aMap.put(0x16, "GATT_CONN_TERMINATE_LOCAL_HOST");
aMap.put(0x22, "GATT_CONN_LMP_TIMEOUT");
aMap.put(0x3e, "GATT_CONN_FAIL_ESTABLISH");

aMap.put(0x87, "GATT_ILLEGAL_PARAMETER");
aMap.put(0x80, "GATT_NO_RESOURCES");
aMap.put(0x81, "GATT_INTERNAL_ERROR");
Expand All @@ -73,14 +78,15 @@ public class GattStatusParser {
aMap.put(0x8a, "GATT_MORE");
aMap.put(0x8b, "GATT_INVALID_CFG");
aMap.put(0x8c, "GATT_SERVICE_STARTED");
aMap.put(0x00, "GATT_SUCCESS");
aMap.put(0x8d, "GATT_ENCRYPED_NO_MITM");
aMap.put(0x8e, "GATT_NOT_ENCRYPTED");
aMap.put(0x8f, "GATT_CONGESTED");

aMap.put(0xfd, "GATT_CCC_CFG_ERR");
aMap.put(0xfe, "GATT_PRC_IN_PROGRESS");
aMap.put(0xff, "GATT_OUT_OF_RANGE");

aMap.put(0x100, "GATT_CONN_CANCEL");
GATT_STATUS = Collections.unmodifiableMap(aMap);
}

Expand Down

0 comments on commit faded23

Please sign in to comment.