Macros
SDK Specific Error Codes
BLE » Error Codes » Defines

## 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_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_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.

## ◆ SDK_ERR_APP_ERROR

#define SDK_ERR_APP_ERROR 0x0080

Application error.

## ◆ SDK_ERR_BUSY

#define SDK_ERR_BUSY 0x0006

SDK is busy internally.

## ◆ SDK_ERR_DISALLOWED

#define SDK_ERR_DISALLOWED 0x000f

Operation is disallowed.

## ◆ SDK_ERR_DISCONNECTED

#define SDK_ERR_DISCONNECTED 0x001C

Disconnection occurs.

## ◆ SDK_ERR_EXT_SCAN_RSP_DATA_NOT_SET

#define SDK_ERR_EXT_SCAN_RSP_DATA_NOT_SET 0x0025

Extended scan response data not set.

## ◆ SDK_ERR_IND_DISABLED

#define SDK_ERR_IND_DISABLED 0x001B

Indication is NOT enabled.

## ◆ SDK_ERR_INVALID_ADDRESS

#define SDK_ERR_INVALID_ADDRESS 0x001D

Invalid address supplied.

## ◆ SDK_ERR_INVALID_ADV_DATA_TYPE

#define SDK_ERR_INVALID_ADV_DATA_TYPE 0x0016

Invalid advertising data type supplied.

## ◆ SDK_ERR_INVALID_ADV_IDX

#define SDK_ERR_INVALID_ADV_IDX 0x0015

Invalid advertising index supplied.

## ◆ SDK_ERR_INVALID_ADV_INTERVAL

#define SDK_ERR_INVALID_ADV_INTERVAL 0x001F

Invalid advertising interval supplied.

## ◆ SDK_ERR_INVALID_ADV_PARAM

#define SDK_ERR_INVALID_ADV_PARAM 0x0021

Invalid advertising parameters supplied.

## ◆ SDK_ERR_INVALID_ADV_PEER_ADDR

#define SDK_ERR_INVALID_ADV_PEER_ADDR 0x0022

Invalid peer address supplied.

## ◆ SDK_ERR_INVALID_ATT_VAL_LEN

#define SDK_ERR_INVALID_ATT_VAL_LEN 0x0013

Invalid length of the attribute value.

## ◆ SDK_ERR_INVALID_BUFF_LENGTH

#define SDK_ERR_INVALID_BUFF_LENGTH 0x000d

The buffer's length is not enough.

## ◆ SDK_ERR_INVALID_CHL_NUM

#define SDK_ERR_INVALID_CHL_NUM 0x0029

Invalid channel number supplied.

## ◆ SDK_ERR_INVALID_CID

#define SDK_ERR_INVALID_CID 0x0028

Invalid CID supplied.

## ◆ SDK_ERR_INVALID_CONN_IDX

#define SDK_ERR_INVALID_CONN_IDX 0x0003

Invalid connection index supplied.

## ◆ SDK_ERR_INVALID_DATA_LENGTH

#define SDK_ERR_INVALID_DATA_LENGTH 0x000e

Invalid data length supplied.

## ◆ SDK_ERR_INVALID_DISVCOVERY_MODE

#define SDK_ERR_INVALID_DISVCOVERY_MODE 0x0020

Invalid discovery mode supplied.

## ◆ SDK_ERR_INVALID_DURATION_PARAM

#define SDK_ERR_INVALID_DURATION_PARAM 0x0026

Invalid duration parameter supplied.

## ◆ SDK_ERR_INVALID_HANDLE

#define SDK_ERR_INVALID_HANDLE 0x0004

Invalid handle supplied.

## ◆ SDK_ERR_INVALID_OFFSET

#define SDK_ERR_INVALID_OFFSET 0x0012

Offset exceeds the current attribute value length.

## ◆ SDK_ERR_INVALID_PARAM

#define SDK_ERR_INVALID_PARAM 0x0001

Invalid parameter supplied.

## ◆ SDK_ERR_INVALID_PER_SYNC_IDX

#define SDK_ERR_INVALID_PER_SYNC_IDX 0x0027

Invalid periodic synchronization index supplied.

## ◆ SDK_ERR_INVALID_PERM

#define SDK_ERR_INVALID_PERM 0x0014

Permission set in service/attribute is invalid.

## ◆ SDK_ERR_INVALID_PSM_ALREADY_REGISTERED

#define SDK_ERR_INVALID_PSM_ALREADY_REGISTERED 0x0018

The PSM number has been registered.

## ◆ 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.

## ◆ SDK_ERR_INVALID_PSM_NUM

#define SDK_ERR_INVALID_PSM_NUM 0x0017

Invalid PSM number.

## ◆ SDK_ERR_LIST_FULL

#define SDK_ERR_LIST_FULL 0x000b

List is full.

## ◆ SDK_ERR_LIST_ITEM_ALREADY_EXISTED

#define SDK_ERR_LIST_ITEM_ALREADY_EXISTED 0x000a

Item already exists in list.

## ◆ SDK_ERR_LIST_ITEM_NOT_FOUND

#define SDK_ERR_LIST_ITEM_NOT_FOUND 0x0009

Item not found in list.

## ◆ SDK_ERR_NO_RESOURCES

#define SDK_ERR_NO_RESOURCES 0x0010

Not enough resources for operation.

## ◆ SDK_ERR_NOT_ENOUGH_CREDITS

#define SDK_ERR_NOT_ENOUGH_CREDITS 0x002A

Not enough credits.

## ◆ SDK_ERR_NTF_DISABLED

#define SDK_ERR_NTF_DISABLED 0x001A

Notification is NOT enabled.

## ◆ SDK_ERR_NVDS_NOT_INIT

#define SDK_ERR_NVDS_NOT_INIT 0x0008

NVDS is not initiated.

## ◆ SDK_ERR_PER_ADV_DATA_NOT_SET

#define SDK_ERR_PER_ADV_DATA_NOT_SET 0x0024

Periodic advertising data not set.

## ◆ SDK_ERR_POINTER_NULL

#define SDK_ERR_POINTER_NULL 0x0002

Invalid pointer supplied.

## ◆ SDK_ERR_PROFILE_COUNT

#define SDK_ERR_PROFILE_COUNT 0x0005

Maximum SDK profile count exceeded.

## ◆ SDK_ERR_REQ_NOT_SUPPORTED

#define SDK_ERR_REQ_NOT_SUPPORTED 0x0011

Request not supported.

## ◆ SDK_ERR_SDK_INTERNAL

#define SDK_ERR_SDK_INTERNAL 0x000c

Internal SDK error.

## ◆ SDK_ERR_TIMER_INSUFFICIENT

#define SDK_ERR_TIMER_INSUFFICIENT 0x0007

Timer is insufficient.

## ◆ SDK_SUCCESS

#define SDK_SUCCESS 0x0000

Successful.