一.從機為另一款芯片藍牙模塊,Uuid分別為
Server_Uuid:
D973F2E0-B19E-11E2-9E96-080020F29A66
Tx_Uuid:
D973F2E1-B19E-11E2-9E96-9E08000C9A66
Rx_Uuid:
D973F2E2-B19E-11E2-9E96-0800200C9A66
使用Central例程,修改以下
uint8_t?server_uuid[16]=?{0xD9,0x73,0xF2,0xE0,0xB1,0x9E,0x11,0xE2,0x9E,0x96,0x08,0x00,0x20,0xF2,0x9A,0x66}; static?void?centralStartDiscovery(?void?) { //??uint8?uuid[ATT_BT_UUID_SIZE]?=?{?LO_UINT16(SIMPLEPROFILE_SERV_UUID), //???????????????????????????????????HI_UINT16(SIMPLEPROFILE_SERV_UUID)?}; ?? ??//?Initialize?cached?handles ??centralSvcStartHdl?=?centralSvcEndHdl?=?centralCharHdl?=?0; ??centralDiscState?=?BLE_DISC_STATE_SVC; ?? ??//?Discovery?simple?BLE?service ??GATT_DiscPrimaryServiceByUUID(?centralConnHandle, ?????????????????????????????????server_uuid, ?????????????????????????????????ATT_UUID_SIZE, ?????????????????????????????????centralTaskId?); }
上述代碼執(zhí)行無法查詢到服務(wù)Handle,需要怎樣修改
二.如果在不知道對方Uuid的情況下,在通過Mac連接到從機設(shè)備后怎樣獲取uuid