成功 / 错误 / 异常对应的状态码:
常量名 | 16进制Code | 10进制Code |
---|---|---|
GATT_SUCCESS | 0x00 | 0 |
GATT_INVALID_HANDLE | 0x01 | 1 |
GATT_READ_NOT_PERMIT | 0x02 | 2 |
GATT_WRITE_NOT_PERMIT | 0x03 | 3 |
GATT_INVALID_PDU | 0x04 | 4 |
GATT_INSUF_AUTHENTICATION | 0x05 | 5 |
GATT_REQ_NOT_SUPPORTED | 0x06 | 6 |
GATT_INVALID_OFFSET | 0x07 | 7 |
GATT_INSUF_AUTHORIZATION | 0x08 | 8 |
GATT_PREPARE_Q_FULL | 0x09 | 9 |
GATT_NOT_FOUND | 0x0a | 10 |
GATT_NOT_LONG | 0x0b | 11 |
GATT_INSUF_KEY_SIZE | 0x0c | 12 |
GATT_INVALID_ATTR_LEN | 0x0d | 13 |
GATT_ERR_UNLIKELY | 0x0e | 14 |
GATT_INSUF_ENCRYPTION | 0x0f | 15 |
GATT_UNSUPPORT_GRP_TYPE | 0x10 | 16 |
GATT_INSUF_RESOURCE | 0x11 | 17 |
GATT_NO_RESOURCES | 0x80 | 128 |
GATT_INTERNAL_ERROR | 0x81 | 129 |
GATT_WRONG_STATE | 0x82 | 130 |
GATT_DB_FULL | 0x83 | 131 |
GATT_BUSY | 0x84 | 132 |
GATT_ERROR | 0x85 | 133 |
GATT_CMD_STARTED | 0x86 | 134 |
GATT_ILLEGAL_PARAMETER | 0x87 | 135 |
GATT_PENDING | 0x88 | 136 |
GATT_AUTH_FAIL | 0x89 | 137 |
GATT_MORE | 0x8a | 138 |
GATT_INVALID_CFG | 0x8b | 139 |
GATT_SERVICE_STARTED | 0x8c | 140 |
GATT_ENCRYPED_MITM | GATT_SUCCESS | 0 |
GATT_ENCRYPED_NO_MITM | 0x8d | 141 |
GATT_NOT_ENCRYPTED | 0x8e | 142 |
GATT_CONGESTED | 0x8f | 143 |
/* 0xE0 ~ 0xFC reserved for future use */ | ||
GATT_CCC_CFG_ERR /* Client Characteristic Configuration Descriptor Improperly Configured */ | 0xFD | 253 |
GATT_PRC_IN_PROGRESS /* Procedure Already in progress */ | 0xFE | 254 |
GATT_OUT_OF_RANGE /* Attribute value out of range */ | 0xFF | 255 |