各位好:
在使用WCHBLEdll 時候發(fā)現(xiàn) WCHBLEGetAllServicesUUID,WCHBLEGetCharacteristicByUUID 函數(shù)時,返回的UUID 長度一直為零,但是函數(shù)執(zhí)行確是成功的。
USHORT serviceuuidlen = 0;
UCHAR ret = WCHBLEGetAllServicesUUID(pBleDevice,serviceuuidarray,(PUSHORT)&serviceuuidlen);
std::cout<<"ret="<<(int16_t)ret<<"service UUID LEN:"<