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

some question about GATT_WriteNoRsp

On Central, I use GATT_WriteNoRsp() to send data,but I can't receive any data on Peripheral.

when I use GATT_WriteCharValue to send data,can receive data.

static void sendData( void )
{

  uint8 status;

  attWriteReq_t REQ;
  REQ.handle = 0x35;
  REQ.len = 20;
  for(status=0;status<20;status++)REQ.pValue[status] = simpleBLERXBUF[status];
  REQ.sig = 0;
  REQ.cmd = 1;
  status = GATT_WriteNoRsp( simpleBLEConnHandle, &REQ );

}

Viki Shi:

GATT_WriteNoRsp 是用于central端的,请问你是central还是peripheral?

Delta:

DEBUG  Peripheral node , to see if data can be received?

zeqiang hua:

回复 Viki Shi:

on central

zeqiang hua:

回复 Delta:

nothing received.

zeqiang hua:

回复 Delta:

nothing received,but if I use GATT_WriteCharValue on Central,data can be received.

赞(0)
未经允许不得转载:TI中文支持网 » some question about GATT_WriteNoRsp
分享到: 更多 (0)