|
发表于 2016-1-14 09:58:59
只看该作者
沙发
- /// Profiles specific error codes
- enum prf_err_code
- {
- /// No error
- PRF_ERR_OK = 0x00,
- /// Application Error
- PRF_APP_ERROR = 0x80,
- /// Invalid parameter in request
- PRF_ERR_INVALID_PARAM,
- /// Inexistent handle for sending a read/write characteristic request
- PRF_ERR_INEXISTENT_HDL,
- /// Discovery stopped due to missing attribute according to specification
- PRF_ERR_STOP_DISC_CHAR_MISSING,
- /// Too many SVC instances found -> protocol violation
- PRF_ERR_MULTIPLE_SVC,
- /// Discovery stopped due to found attribute with incorrect properties
- PRF_ERR_STOP_DISC_WRONG_CHAR_PROP,
- /// Too many Char. instances found-> protocol violation
- PRF_ERR_MULTIPLE_CHAR,
- /// Attribute write not allowed
- PRF_ERR_NOT_WRITABLE,
- /// Attribute read not allowed
- PRF_ERR_NOT_READABLE,
- /// Request not allowed
- PRF_ERR_REQ_DISALLOWED,
- /// Notification Not Enabled
- PRF_ERR_NTF_DISABLED,
- /// Indication Not Enabled
- PRF_ERR_IND_DISABLED,
- /// Feature not supported by profile
- PRF_ERR_FEATURE_NOT_SUPPORTED,
- /// Read value has an unexpected length
- PRF_ERR_UNEXPECTED_LEN,
- /// Disconnection occurs
- PRF_ERR_DISCONNECTED,
- /// Procedure Timeout
- PRF_ERR_PROC_TIMEOUT,
- /// Client Char Config Desc Improperly Configured
- PRF_CCCD_IMPR_CONFIGURED = 0xFD,
- /// Procedure Already in Progress
- PRF_PROC_IN_PROGRESS,
- /// Out of Range
- PRF_OUT_OF_RANGE
- };
复制代码
错误代码提示特征不可读,说明你的特征声明部分有问题。 |
|