Error code definitions

C

#define MBA_RES_SUCCESS                         0x0000
#define MBA_RES_FAIL                            0x0001
#define MBA_RES_OOM                             0x0002
#define MBA_RES_INVALID_PARA                    0x0003
#define MBA_RES_NO_RESOURCE                     0x0004
#define MBA_RES_BAD_STATE                       0x0005
#define MBA_RES_PENDING_DUE_TO_SECURITY         0x0006
#define MBA_RES_BUSY                            0x0007
#define MBA_RES_UNKNOWN_CONN_ID                 0x0102
#define MBA_RES_AUTHENTICATION_FAILURE          0x0105
#define MBA_RES_PIN_OR_KEY_MISSING              0x0106
#define MBA_RES_CONN_TIMEOUT                    0x0108
#define MBA_RES_CONN_ALREADY_EXISTS             0x010B
#define MBA_RES_COMMAND_DISALLOWED              0x010C
#define MBA_RES_CONN_REJ_LIMITED_RESOURCES      0x010D
#define MBA_RES_CONN_REJ_SECURITY_REASONS       0x010E
#define MBA_RES_REMOTE_USER_TERM_CONN           0x0113
#define MBA_RES_PAIRING_NOT_ALLOWED             0x0118
#define MBA_RES_UNSUPPORT_REMOTE_FEATURE        0x011A
#define MBA_RES_INSUFFICIENT_SECURITY           0x012F
#define MBA_RES_ADVERTISING_TIMEOUT             0x013C
#define MBA_RES_CONN_TERM_MIC_FAILURE           0x013D
#define MBA_RES_UNKNOWN_ADV_ID                  0x0142

Description

The definition of STACK API result.

Macro Definition

MacroDescription
MBA_RES_SUCCESSExecution successfully.
MBA_RES_FAILExecution fail.
MBA_RES_OOMOut of memory.
MBA_RES_INVALID_PARAInvalid parameters.
MBA_RES_NO_RESOURCENo resource.
MBA_RES_BAD_STATEBad State.
MBA_RES_PENDING_DUE_TO_SECURITYPending the request due to security process.
MBA_RES_BUSYExecution fail due to stack is busy.
MBA_RES_UNKNOWN_CONN_IDUnknown connection identifier.
MBA_RES_AUTHENTICATION_FAILUREAuthentication failure.
MBA_RES_PIN_OR_KEY_MISSINGPIN or key missing.
MBA_RES_CONN_TIMEOUTConnection timeout.
MBA_RES_CONN_ALREADY_EXISTSConnection already exists.
MBA_RES_COMMAND_DISALLOWEDCommand disallowed.
MBA_RES_CONN_REJ_LIMITED_RESOURCESConnection rejected due to limited resources.
MBA_RES_CONN_REJ_SECURITY_REASONSConnection rejected due to security reasons.
MBA_RES_REMOTE_USER_TERM_CONNRemote user terminated connection.
MBA_RES_PAIRING_NOT_ALLOWEDPairing not allowed.
MBA_RES_UNSUPPORT_REMOTE_FEATUREUnsupported remote feature.
MBA_RES_INSUFFICIENT_SECURITYInsufficient security.
MBA_RES_ADVERTISING_TIMEOUTAdvertising timeout.
MBA_RES_CONN_TERM_MIC_FAILUREConnection terminated due to MIC failure.
MBA_RES_UNKNOWN_ADV_IDUnknown advertising identifier.