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函数写5个字节数据,不能写,写一个字节就可以,这个函数不是最多一次可以发20个字节吗?



req.handle = simpleBLECharHdl;       

  req.len = 20;          

 req.value[0] = 0x66;        

req.value[1] = 0x77;        

 req.sig = 0;        

 req.cmd = 0;       

  status = GATT_WriteCharValue( simpleBLEConnHandle, &req, simpleBLETaskId );  

结果write error 13,为什么呢?