- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
uint8_t client_device_name[15] = {'B','L','E','C','T','S','C','l','i','e','n','t','\0'};
p_data = wiced_bt_ble_check_advertising_data(p_adv_data,BTM_BLE_ADVERT_TYPE_NAME_COMPLETE
和长度);
if (length == strlen((const char *)client_device_name)
&& memcmp(p_data, (uint8_t *)client_device_name, length) == 0))
{
}
以上是P6Soc做为主,主动去搜索附近的蓝牙,按名字去寻找相应的蓝牙从设备的示范代码
请问我想以 P6Soc做为主,主动去搜索附近的蓝牙,按UUID 或者 制造商
等去寻找 相应的蓝牙从 设备的示范代码 如何写? 麻烦指导一下,谢谢!
uint32_t uuid = 0x0000fff700001000800000805f9b34fb;?
p_data = wiced_bt_ble_check_advertising_data(p_adv_data,
BTM_BLE_ADVERT_TYPE_128SRV_COMPLETE, // 是这个吗
&length);
以制造商为类型去搜,和上面的名字一样吗
??
Solved! Go to Solution.
- Labels:
-
PSoC3 MCU

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
可以按照你说的方法进行搜索,但是要保证从机端的广播包里有相应的数据才能被搜索到。

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
请问你的蓝牙设备是什么?psoc6+CYW43012吗?是在MTB上开发吗?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
可以按照你说的方法进行搜索,但是要保证从机端的广播包里有相应的数据才能被搜索到。