@@ -213,61 +213,101 @@ enum GattAuthCallbackReply_t {
213213 */
214214 AUTH_CALLBACK_REPLY_SUCCESS = 0x00 ,
215215
216- /* *
217- * ATT Error: Invalid attribute handle.
218- */
219- AUTH_CALLBACK_REPLY_ATTERR_INVALID_HANDLE = 0x0101 ,
216+ /* * The attribute handle given was not valid on this server. */
217+ AUTH_CALLBACK_REPLY_ATTERR_INVALID_HANDLE = 0x01 ,
220218
221- /* *
222- * ATT Error: Read not permitted.
223- */
224- AUTH_CALLBACK_REPLY_ATTERR_READ_NOT_PERMITTED = 0x0102 ,
219+ /* * The attribute cannot be read. */
220+ AUTH_CALLBACK_REPLY_ATTERR_READ_NOT_PERMITTED = 0x02 ,
225221
226- /* *
227- * ATT Error: Write not permitted.
222+ /* * The attribute cannot be written. */
223+ AUTH_CALLBACK_REPLY_ATTERR_WRITE_NOT_PERMITTED = 0x03 ,
224+
225+ /* * The attribute PDU was invalid. */
226+ AUTH_CALLBACK_REPLY_ATTERR_INVALID_PDU = 0x04 ,
227+
228+ /* * The attribute requires authentication before it can be read or
229+ * written.
228230 */
229- AUTH_CALLBACK_REPLY_ATTERR_WRITE_NOT_PERMITTED = 0x0103 ,
231+ AUTH_CALLBACK_REPLY_ATTERR_INSUFFICIENT_AUTHENTICATION = 0x05 ,
232+ AUTH_CALLBACK_REPLY_ATTERR_INSUF_AUTHENTICATION = 0x05 ,
230233
231- /* *
232- * ATT Error: Authenticated link required .
234+ /* * Attribute server does not support the request received from the
235+ * client .
233236 */
234- AUTH_CALLBACK_REPLY_ATTERR_INSUF_AUTHENTICATION = 0x0105 ,
237+ AUTH_CALLBACK_REPLY_ATTERR_REQUEST_NOT_SUPPORTED = 0x06 ,
235238
236- /* *
237- * ATT Error: The specified offset was past the end of the attribute.
239+ /* * Offset specified was past the end of the attribute. */
240+ AUTH_CALLBACK_REPLY_ATTERR_INVALID_OFFSET = 0x07 ,
241+
242+ /* * The attribute requires authorization before it can be read or written. */
243+ AUTH_CALLBACK_REPLY_ATTERR_INSUFFICIENT_AUTHORIZATION = 0x08 ,
244+ AUTH_CALLBACK_REPLY_ATTERR_INSUF_AUTHORIZATION = 0x08 ,
245+
246+ /* * Too many prepare writes have been queued. */
247+ AUTH_CALLBACK_REPLY_ATTERR_PREPARE_QUEUE_FULL = 0x09 ,
248+
249+ /* * No attribute found within the given attribute handle range. */
250+ AUTH_CALLBACK_REPLY_ATTERR_ATTRIBUTE_NOT_FOUND = 0x0A ,
251+
252+ /* * The attribute cannot be read using the Read Blob Request. */
253+ AUTH_CALLBACK_REPLY_ATTERR_ATTRIBUTE_NOT_LONG = 0x0B ,
254+
255+ /* * The Encryption Key Size used for encrypting this link is
256+ * insufficient.
238257 */
239- AUTH_CALLBACK_REPLY_ATTERR_INVALID_OFFSET = 0x0107 ,
258+ AUTH_CALLBACK_REPLY_ATTERR_INSUFFICIENT_ENCRYPTION_KEY_SIZE = 0x0C ,
240259
241- /* *
242- * ATT Error: Used in ATT as "insufficient authorization".
260+ /* * The attribute value length is invalid for the operation. */
261+ AUTH_CALLBACK_REPLY_ATTERR_INVALID_ATTRIBUTE_VALUE_LENGTH = 0x0D ,
262+ AUTH_CALLBACK_REPLY_ATTERR_INVALID_ATT_VAL_LENGTH = 0x0D ,
263+
264+ /* * The attribute request that was requested has encountered an error
265+ * that was unlikely, and therefore could not be completed as requested.
243266 */
244- AUTH_CALLBACK_REPLY_ATTERR_INSUF_AUTHORIZATION = 0x0108 ,
267+ AUTH_CALLBACK_REPLY_ATTERR_UNLIKELY_ERROR = 0x0E ,
245268
246- /* *
247- * ATT Error: Used in ATT as "prepare queue full".
269+ /* * The attribute requires encryption before it can be read or written. */
270+ AUTH_CALLBACK_REPLY_ATTERR_INSUFFICIENT_ENCRYPTION = 0x0F ,
271+
272+ /* * The attribute type is not a supported grouping attribute as defined
273+ * by a higher layer specification.
248274 */
249- AUTH_CALLBACK_REPLY_ATTERR_PREPARE_QUEUE_FULL = 0x0109 ,
275+ AUTH_CALLBACK_REPLY_ATTERR_UNSUPPORTED_GROUP_TYPE = 0x10 ,
250276
251- /* *
252- * ATT Error: Used in ATT as "attribute not found".
277+ /* * Insufficient Resources to complete the request. */
278+ AUTH_CALLBACK_REPLY_ATTERR_INSUFFICIENT_RESOURCES = 0x11 ,
279+ AUTH_CALLBACK_REPLY_ATTERR_INSUF_RESOURCES = 0x11 ,
280+
281+ /* 0x12 - 0x7F => reserved for future use */
282+
283+ /* 0x80 - 0x9F => Application Error */
284+
285+ /* 0xA0 0xDF => Reserved for future use */
286+
287+ /* 0xE0 - 0xFF Common Profile and service Error Codes */
288+
289+ /* * The Write Request Rejected error code is used when a requested write
290+ * operation cannot be fulfilled for reasons other than permissions.
253291 */
254- AUTH_CALLBACK_REPLY_ATTERR_ATTRIBUTE_NOT_FOUND = 0x010A ,
292+ AUTH_CALLBACK_REPLY_ATTERR_WRITE_REQUEST_REJECTED = 0xFC ,
255293
256- /* *
257- * ATT Error: Attribute cannot be read or written using read/write blob
258- * requests.
294+ /* * The Client Characteristic Configuration Descriptor Improperly
295+ * Configured error code is used when a Client Characteristic
296+ * Configuration descriptor is not configured according to the
297+ * requirements of the profile or service.
259298 */
260- AUTH_CALLBACK_REPLY_ATTERR_ATTRIBUTE_NOT_LONG = 0x010B ,
299+ AUTH_CALLBACK_REPLY_ATTERR_CLIENT_CHARACTERISTIC_CONFIGURATION_DESCRIPTOR_IMPROPERLY_CONFIGURED = 0xFD ,
261300
262- /* *
263- * ATT Error: Invalid value size.
301+ /* * The Procedure Already in Progress error code is used when a profile
302+ * or service request cannot be serviced because an operation that has
303+ * been previously triggered is still in progress
264304 */
265- AUTH_CALLBACK_REPLY_ATTERR_INVALID_ATT_VAL_LENGTH = 0x010D ,
305+ AUTH_CALLBACK_REPLY_ATTERR_PROCEDURE_ALREADY_IN_PROGRESS = 0xFE ,
266306
267- /* *
268- * ATT Error: Encrypted link required .
307+ /* * The Out of Range error code is used when an attribute value is out
308+ * of range as defined by a profile or service specification .
269309 */
270- AUTH_CALLBACK_REPLY_ATTERR_INSUF_RESOURCES = 0x0111 ,
310+ AUTH_CALLBACK_REPLY_ATTERR_OUT_OF_RANGE = 0xFF ,
271311};
272312
273313/* *
0 commit comments