TI中文支持网
TI专业的中文技术问题搜集分享网站

调用GATT_WriteCharValue 后返回errorcode, pMsg->msg.errorRsp.errCode = 0x03

主机在调用 写特征值后,等到一个response 返回一个error code

status = GATT_WriteCharValue(connHandle, &req, selfEntity);

返回的是

else if ((pMsg->method == ATT_WRITE_RSP)  ||((pMsg->method == ATT_ERROR_RSP) &&(pMsg->msg.errorRsp.reqOpcode == ATT_WRITE_REQ))){if (pMsg->method == ATT_ERROR_RSP){
//add by zhou zhiqiang 20200716if(1 == ghw_control_flag){g_periodic_task_flag = 1;g_periodic_task_fail_count++;}send_pkt(SET_SLAVE_IO_ERROR);test_errCode = pMsg->msg.errorRsp.errCode;
//add by zhou zhiqiang 20200716Display_print1(dispHandle, 4, 0, "Write Error %d", pMsg->msg.errorRsp.errCode);

pMsg->msg.errorRsp.errCode = 0x03 ??

Viki Shi:

#define ATT_ERR_WRITE_NOT_PERMITTED0x03 //!< Attribute cannot be written

属性写入错误,建议追踪一下属性写入回调函数,断点调试一下

user6313700:

回复 Viki Shi:

这类的错误描述在哪里可以找到呢?

Viki Shi:

回复 user6313700:

att.h

赞(0)
未经允许不得转载:TI中文支持网 » 调用GATT_WriteCharValue 后返回errorcode, pMsg->msg.errorRsp.errCode = 0x03
分享到: 更多 (0)