This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

调用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 20200716
          if(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 20200716
        Display_print1(dispHandle, 4, 0, "Write Error %d", pMsg->msg.errorRsp.errCode);

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