SDK Specific Error Codes

Macros

#define SDK_SUCCESS   0x0000
 
#define SDK_ERR_INVALID_PARAM   0x0001
 
#define SDK_ERR_POINTER_NULL   0x0002
 
#define SDK_ERR_INVALID_CONN_IDX   0x0003
 
#define SDK_ERR_INVALID_HANDLE   0x0004
 
#define SDK_ERR_PROFILE_COUNT   0x0005
 
#define SDK_ERR_BUSY   0x0006
 
#define SDK_ERR_TIMER_INSUFFICIENT   0x0007
 
#define SDK_ERR_NVDS_NOT_INIT   0x0008
 
#define SDK_ERR_LIST_ITEM_NOT_FOUND   0x0009
 
#define SDK_ERR_LIST_ITEM_ALREADY_EXISTED   0x000a
 
#define SDK_ERR_LIST_FULL   0x000b
 
#define SDK_ERR_SDK_INTERNAL   0x000c
 
#define SDK_ERR_INVALID_BUFF_LENGTH   0x000d
 
#define SDK_ERR_INVALID_DATA_LENGTH   0x000e
 
#define SDK_ERR_DISALLOWED   0x000f
 
#define SDK_ERR_NO_RESOURCES   0x0010
 
#define SDK_ERR_REQ_NOT_SUPPORTED   0x0011
 
#define SDK_ERR_INVALID_OFFSET   0x0012
 
#define SDK_ERR_INVALID_ATT_VAL_LEN   0x0013
 
#define SDK_ERR_INVALID_PERM   0x0014
 
#define SDK_ERR_INVALID_ADV_IDX   0x0015
 
#define SDK_ERR_INVALID_ADV_DATA_TYPE   0x0016
 
#define SDK_ERR_INVALID_PSM_NUM   0x0017
 
#define SDK_ERR_INVALID_PSM_ALREADY_REGISTERED   0x0018
 
#define SDK_ERR_INVALID_PSM_EXCEEDED_MAX_PSM_NUM   0x0019
 
#define SDK_ERR_NTF_DISABLED   0x001A
 
#define SDK_ERR_IND_DISABLED   0x001B
 
#define SDK_ERR_DISCONNECTED   0x001C
 
#define SDK_ERR_INVALID_ADDRESS   0x001D
 
#define SDK_ERR_FEATURE_NOT_ENABLE   0x001E
 
#define SDK_ERR_INVALID_ADV_INTERVAL   0x001F
 
#define SDK_ERR_INVALID_DISVCOVERY_MODE   0x0020
 
#define SDK_ERR_INVALID_ADV_PARAM   0x0021
 
#define SDK_ERR_INVALID_ADV_PEER_ADDR   0x0022
 
#define SDK_ERR_ADV_DATA_NOT_SET   0x0023
 
#define SDK_ERR_PER_ADV_DATA_NOT_SET   0x0024
 
#define SDK_ERR_EXT_SCAN_RSP_DATA_NOT_SET   0x0025
 
#define SDK_ERR_INVALID_DURATION_PARAM   0x0026
 
#define SDK_ERR_INVALID_PER_SYNC_IDX   0x0027
 
#define SDK_ERR_INVALID_CID   0x0028
 
#define SDK_ERR_INVALID_CHL_NUM   0x0029
 
#define SDK_ERR_NOT_ENOUGH_CREDITS   0x002A
 
#define SDK_ERR_REPEAT_CID   0x002B
 
#define SDK_ERR_CACHE_NOT_ENABLE   0x002C
 
#define SDK_ERR_CACHE_INVALID   0x002D
 
#define SDK_ERR_APP_ERROR   0x0080
 

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.