Macros
SDK Specific Error Codes
BLE » Error Codes » Defines
Collaboration diagram for SDK Specific Error Codes:

## Macros
#define | SDK_SUCCESS 0x0000
| Successful. More...
#define | SDK_ERR_INVALID_PARAM 0x0001
| Invalid parameter supplied. More...
#define | SDK_ERR_POINTER_NULL 0x0002
| Invalid pointer supplied. More...
#define | SDK_ERR_INVALID_CONN_IDX 0x0003
| Invalid connection index supplied. More...
#define | SDK_ERR_INVALID_HANDLE 0x0004
| Invalid handle supplied. More...
#define | SDK_ERR_PROFILE_COUNT 0x0005
| Maximum SDK profile count exceeded. More...
#define | SDK_ERR_BUSY 0x0006
| SDK is busy internally. More...
#define | SDK_ERR_TIMER_INSUFFICIENT 0x0007
| Timer is insufficient. More...
#define | SDK_ERR_NVDS_NOT_INIT 0x0008
| NVDS is not initiated. More...
#define | SDK_ERR_LIST_ITEM_NOT_FOUND 0x0009
| Item not found in list. More...
#define | SDK_ERR_LIST_ITEM_ALREADY_EXISTED 0x000a
| Item already exists in list. More...
#define | SDK_ERR_LIST_FULL 0x000b
| List is full. More...
#define | SDK_ERR_SDK_INTERNAL 0x000c
| Internal SDK error. More...
#define | SDK_ERR_INVALID_BUFF_LENGTH 0x000d
| The buffer's length is not enough. More...
#define | SDK_ERR_INVALID_DATA_LENGTH 0x000e
| Invalid data length supplied. More...
#define | SDK_ERR_DISALLOWED 0x000f
| Operation is disallowed. More...
#define | SDK_ERR_NO_RESOURCES 0x0010
| Not enough resources for operation. More...
#define | SDK_ERR_REQ_NOT_SUPPORTED 0x0011
| Request not supported. More...
#define | SDK_ERR_INVALID_OFFSET 0x0012
| Offset exceeds the current attribute value length. More...
#define | SDK_ERR_INVALID_ATT_VAL_LEN 0x0013
| Invalid length of the attribute value. More...
#define | SDK_ERR_INVALID_PERM 0x0014
| Permission set in service/attribute is invalid. More...
#define | SDK_ERR_INVALID_ADV_IDX 0x0015
| Invalid advertising index supplied. More...
#define | SDK_ERR_INVALID_ADV_DATA_TYPE 0x0016
| Invalid advertising data type supplied. More...
#define | SDK_ERR_INVALID_PSM_NUM 0x0017
| Invalid PSM number. More...
#define | SDK_ERR_INVALID_PSM_ALREADY_REGISTERED 0x0018
| The PSM number has been registered. More...
#define | SDK_ERR_INVALID_PSM_EXCEEDED_MAX_PSM_NUM 0x0019
| The maximum PSM number limit is exceeded. More...
#define | SDK_ERR_NTF_DISABLED 0x001A
| Notification is NOT enabled. More...
#define | SDK_ERR_IND_DISABLED 0x001B
| Indication is NOT enabled. More...
#define | SDK_ERR_DISCONNECTED 0x001C
| Disconnection occurs. More...
#define | SDK_ERR_INVALID_ADDRESS 0x001D
| Invalid address supplied. More...
#define | SDK_ERR_FEATURE_NOT_ENABLE 0x001E
| Feature not enable in ble feature config. More...
#define | SDK_ERR_INVALID_ADV_INTERVAL 0x001F
| Invalid advertising interval supplied. More...
#define | SDK_ERR_INVALID_DISVCOVERY_MODE 0x0020
| Invalid discovery mode supplied. More...
#define | SDK_ERR_INVALID_ADV_PARAM 0x0021
| Invalid advertising parameters supplied. More...
#define | SDK_ERR_INVALID_ADV_PEER_ADDR 0x0022
| Invalid peer address supplied. More...
#define | SDK_ERR_ADV_DATA_NOT_SET 0x0023
| Legacy advertising data not set. More...
#define | SDK_ERR_PER_ADV_DATA_NOT_SET 0x0024
| Periodic advertising data not set. More...
#define | SDK_ERR_EXT_SCAN_RSP_DATA_NOT_SET 0x0025
| Extended scan response data not set. More...
#define | SDK_ERR_INVALID_DURATION_PARAM 0x0026
| Invalid duration parameter supplied. More...
#define | SDK_ERR_INVALID_PER_SYNC_IDX 0x0027
| Invalid periodic synchronization index supplied. More...
#define | SDK_ERR_INVALID_CID 0x0028
| Invalid CID supplied. More...
#define | SDK_ERR_INVALID_CHL_NUM 0x0029
| Invalid channel number supplied. More...
#define | SDK_ERR_NOT_ENOUGH_CREDITS 0x002A
| Not enough credits. More...
#define | SDK_ERR_REPEAT_CID 0x002B
| Invalid repeat CID. More...
#define | SDK_ERR_CACHE_NOT_ENABLE 0x002C
| Cache feature is not enabled. More...
#define | SDK_ERR_CACHE_INVALID 0x002D
| Cache data is invalid. More...
#define | SDK_ERR_APP_ERROR 0x0080
| Application error. More...

## Detailed Description

## Macro Definition Documentation

## ◆ SDK_ERR_ADV_DATA_NOT_SET

#define SDK_ERR_ADV_DATA_NOT_SET 0x0023

Legacy advertising data not set.

Definition at line 97 of file ble_error.h.

## ◆ SDK_ERR_APP_ERROR

#define SDK_ERR_APP_ERROR 0x0080

Application error.

Definition at line 109 of file ble_error.h.

## ◆ SDK_ERR_BUSY

#define SDK_ERR_BUSY 0x0006

SDK is busy internally.

Definition at line 67 of file ble_error.h.

## ◆ SDK_ERR_CACHE_INVALID

#define SDK_ERR_CACHE_INVALID 0x002D

Cache data is invalid.

Definition at line 107 of file ble_error.h.

## ◆ SDK_ERR_CACHE_NOT_ENABLE

#define SDK_ERR_CACHE_NOT_ENABLE 0x002C

Cache feature is not enabled.

Definition at line 106 of file ble_error.h.

## ◆ SDK_ERR_DISALLOWED

#define SDK_ERR_DISALLOWED 0x000f

Operation is disallowed.

Definition at line 76 of file ble_error.h.

## ◆ SDK_ERR_DISCONNECTED

#define SDK_ERR_DISCONNECTED 0x001C

Disconnection occurs.

Definition at line 89 of file ble_error.h.

## ◆ SDK_ERR_EXT_SCAN_RSP_DATA_NOT_SET

#define SDK_ERR_EXT_SCAN_RSP_DATA_NOT_SET 0x0025

Extended scan response data not set.

Definition at line 99 of file ble_error.h.

## ◆ SDK_ERR_FEATURE_NOT_ENABLE

#define SDK_ERR_FEATURE_NOT_ENABLE 0x001E

Feature not enable in ble feature config.

Definition at line 91 of file ble_error.h.

## ◆ SDK_ERR_IND_DISABLED

#define SDK_ERR_IND_DISABLED 0x001B

Indication is NOT enabled.

Definition at line 88 of file ble_error.h.

## ◆ SDK_ERR_INVALID_ADDRESS

#define SDK_ERR_INVALID_ADDRESS 0x001D

Invalid address supplied.

Definition at line 90 of file ble_error.h.

## ◆ SDK_ERR_INVALID_ADV_DATA_TYPE

#define SDK_ERR_INVALID_ADV_DATA_TYPE 0x0016

Invalid advertising data type supplied.

Definition at line 83 of file ble_error.h.

## ◆ SDK_ERR_INVALID_ADV_IDX

#define SDK_ERR_INVALID_ADV_IDX 0x0015

Invalid advertising index supplied.

Definition at line 82 of file ble_error.h.

## ◆ SDK_ERR_INVALID_ADV_INTERVAL

#define SDK_ERR_INVALID_ADV_INTERVAL 0x001F

Invalid advertising interval supplied.

Definition at line 93 of file ble_error.h.

## ◆ SDK_ERR_INVALID_ADV_PARAM

#define SDK_ERR_INVALID_ADV_PARAM 0x0021

Invalid advertising parameters supplied.

Definition at line 95 of file ble_error.h.

## ◆ SDK_ERR_INVALID_ADV_PEER_ADDR

#define SDK_ERR_INVALID_ADV_PEER_ADDR 0x0022

Invalid peer address supplied.

Definition at line 96 of file ble_error.h.

## ◆ SDK_ERR_INVALID_ATT_VAL_LEN

#define SDK_ERR_INVALID_ATT_VAL_LEN 0x0013

Invalid length of the attribute value.

Definition at line 80 of file ble_error.h.

## ◆ SDK_ERR_INVALID_BUFF_LENGTH

#define SDK_ERR_INVALID_BUFF_LENGTH 0x000d

The buffer's length is not enough.

Definition at line 74 of file ble_error.h.

## ◆ SDK_ERR_INVALID_CHL_NUM

#define SDK_ERR_INVALID_CHL_NUM 0x0029

Invalid channel number supplied.

Definition at line 103 of file ble_error.h.

## ◆ SDK_ERR_INVALID_CID

#define SDK_ERR_INVALID_CID 0x0028

Invalid CID supplied.

Definition at line 102 of file ble_error.h.

## ◆ SDK_ERR_INVALID_CONN_IDX

#define SDK_ERR_INVALID_CONN_IDX 0x0003

Invalid connection index supplied.

Definition at line 64 of file ble_error.h.

## ◆ SDK_ERR_INVALID_DATA_LENGTH

#define SDK_ERR_INVALID_DATA_LENGTH 0x000e

Invalid data length supplied.

Definition at line 75 of file ble_error.h.

## ◆ SDK_ERR_INVALID_DISVCOVERY_MODE

#define SDK_ERR_INVALID_DISVCOVERY_MODE 0x0020

Invalid discovery mode supplied.

Definition at line 94 of file ble_error.h.

## ◆ SDK_ERR_INVALID_DURATION_PARAM

#define SDK_ERR_INVALID_DURATION_PARAM 0x0026

Invalid duration parameter supplied.

Definition at line 100 of file ble_error.h.

## ◆ SDK_ERR_INVALID_HANDLE

#define SDK_ERR_INVALID_HANDLE 0x0004

Invalid handle supplied.

Definition at line 65 of file ble_error.h.

## ◆ SDK_ERR_INVALID_OFFSET

#define SDK_ERR_INVALID_OFFSET 0x0012

Offset exceeds the current attribute value length.

Definition at line 79 of file ble_error.h.

## ◆ SDK_ERR_INVALID_PARAM

#define SDK_ERR_INVALID_PARAM 0x0001

Invalid parameter supplied.

Definition at line 62 of file ble_error.h.

## ◆ SDK_ERR_INVALID_PER_SYNC_IDX

#define SDK_ERR_INVALID_PER_SYNC_IDX 0x0027

Invalid periodic synchronization index supplied.

Definition at line 101 of file ble_error.h.

## ◆ SDK_ERR_INVALID_PERM

#define SDK_ERR_INVALID_PERM 0x0014

Permission set in service/attribute is invalid.

Definition at line 81 of file ble_error.h.

## ◆ SDK_ERR_INVALID_PSM_ALREADY_REGISTERED

#define SDK_ERR_INVALID_PSM_ALREADY_REGISTERED 0x0018

The PSM number has been registered.

Definition at line 85 of file ble_error.h.

## ◆ SDK_ERR_INVALID_PSM_EXCEEDED_MAX_PSM_NUM

#define SDK_ERR_INVALID_PSM_EXCEEDED_MAX_PSM_NUM 0x0019

The maximum PSM number limit is exceeded.

Definition at line 86 of file ble_error.h.

## ◆ SDK_ERR_INVALID_PSM_NUM

#define SDK_ERR_INVALID_PSM_NUM 0x0017

Invalid PSM number.

Definition at line 84 of file ble_error.h.

## ◆ SDK_ERR_LIST_FULL

#define SDK_ERR_LIST_FULL 0x000b

List is full.

Definition at line 72 of file ble_error.h.

## ◆ SDK_ERR_LIST_ITEM_ALREADY_EXISTED

#define SDK_ERR_LIST_ITEM_ALREADY_EXISTED 0x000a

Item already exists in list.

Definition at line 71 of file ble_error.h.

## ◆ SDK_ERR_LIST_ITEM_NOT_FOUND

#define SDK_ERR_LIST_ITEM_NOT_FOUND 0x0009

Item not found in list.

Definition at line 70 of file ble_error.h.

## ◆ SDK_ERR_NO_RESOURCES

#define SDK_ERR_NO_RESOURCES 0x0010

Not enough resources for operation.

Definition at line 77 of file ble_error.h.

## ◆ SDK_ERR_NOT_ENOUGH_CREDITS

#define SDK_ERR_NOT_ENOUGH_CREDITS 0x002A

Not enough credits.

Definition at line 104 of file ble_error.h.

## ◆ SDK_ERR_NTF_DISABLED

#define SDK_ERR_NTF_DISABLED 0x001A

Notification is NOT enabled.

Definition at line 87 of file ble_error.h.

## ◆ SDK_ERR_NVDS_NOT_INIT

#define SDK_ERR_NVDS_NOT_INIT 0x0008

NVDS is not initiated.

Definition at line 69 of file ble_error.h.

## ◆ SDK_ERR_PER_ADV_DATA_NOT_SET

#define SDK_ERR_PER_ADV_DATA_NOT_SET 0x0024

Periodic advertising data not set.

Definition at line 98 of file ble_error.h.

## ◆ SDK_ERR_POINTER_NULL

#define SDK_ERR_POINTER_NULL 0x0002

Invalid pointer supplied.

Definition at line 63 of file ble_error.h.

## ◆ SDK_ERR_PROFILE_COUNT

#define SDK_ERR_PROFILE_COUNT 0x0005

Maximum SDK profile count exceeded.

Definition at line 66 of file ble_error.h.

## ◆ SDK_ERR_REPEAT_CID

#define SDK_ERR_REPEAT_CID 0x002B

Invalid repeat CID.

Definition at line 105 of file ble_error.h.

## ◆ SDK_ERR_REQ_NOT_SUPPORTED

#define SDK_ERR_REQ_NOT_SUPPORTED 0x0011

Request not supported.

Definition at line 78 of file ble_error.h.

## ◆ SDK_ERR_SDK_INTERNAL

#define SDK_ERR_SDK_INTERNAL 0x000c

Internal SDK error.

Definition at line 73 of file ble_error.h.

## ◆ SDK_ERR_TIMER_INSUFFICIENT

#define SDK_ERR_TIMER_INSUFFICIENT 0x0007

Timer is insufficient.

Definition at line 68 of file ble_error.h.

## ◆ SDK_SUCCESS

#define SDK_SUCCESS 0x0000

Successful.

Definition at line 61 of file ble_error.h.