我測(cè)試連續(xù)發(fā)送的話,接收端只能收到5次操作,比如連續(xù)發(fā)送小寫(xiě)a,但是電腦只能接收到5次,之后就沒(méi)有任何消息,官方文檔我沒(méi)看見(jiàn)有什么具體說(shuō)明,只有在ble文件下面有一個(gè)CH57xBLE協(xié)議棧庫(kù)說(shuō)明.pdf,這個(gè)里面也沒(méi)有提到。
問(wèn)下想要連續(xù)發(fā)送數(shù)據(jù),該怎么加判斷發(fā)送成功語(yǔ)句或等待發(fā)送成功語(yǔ)句。
發(fā)送代碼
{
????buf[0] = 0x00;
????buf[1] = 0x00;
????buf[2] = 0x04;????//小寫(xiě)a
????buf[3] = 0x00;
????buf[4] = 0x00;
????buf[5] = 0x00;
????buf[6] = 0x00;
????buf[7] = 0x00;
????HidDev_Report( 1, HID_REPORT_TYPE_INPUT, 8, buf );
????
????buf[0] = 0x00;
????buf[1] = 0x00;
????buf[2] = 0x00;????//抬起
????buf[3] = 0x00;
????buf[4] = 0x00;
????buf[5] = 0x00;
????buf[6] = 0x00;
????buf[7] = 0x00;
????HidDev_Report( 1, HID_REPORT_TYPE_INPUT, 8, buf );
}
求解答~被困擾很長(zhǎng)時(shí)間了,在做藍(lán)牙鍵盤(pán)