Announcements

Curious on how you can apply PSoC™ 6 to Smart Home Appliances? Register for the ASEAN Smart Home Appliance Webinar here to find out how.

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

PSoC™ 6 Forum Discussions

kexb
Level 1
First reply posted First question asked Welcome!
Level 1

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);
以制造商为类型去搜,和上面的名字一样吗
??

0 Likes
1 Solution
Owen_Zhang123
Moderator
Moderator 500 solutions authored 250 sign-ins 1000 replies posted
Moderator

可以按照你说的方法进行搜索,但是要保证从机端的广播包里有相应的数据才能被搜索到。

View solution in original post

0 Likes
3 Replies
Owen_Zhang123
Moderator
Moderator 500 solutions authored 250 sign-ins 1000 replies posted
Moderator

请问你的蓝牙设备是什么?psoc6+CYW43012吗?是在MTB上开发吗?

0 Likes
kexb
Level 1
First reply posted First question asked Welcome!
Level 1
 我使用的是 CYW9P62S1-43438EVB-01  CY8C6247BZI-D4
                  我现在是以AnyCloud_Wi-Fi_Onboarding_Using_BLE为主代码,在该工程基础上集成AnyCloud_TCP_Client 和 AnyCloud_BLE_CTS_Server。
现在主要遇到AnyCloud_BLE_CTS_Server蓝牙主动去搜索连接iot, 现在我先以AnyCloud_BLE_CTS_Client做为iot调试,现在遇到搜索连接3个iot 的问题,如何
精确去搜到和连接3个iot; 这3个iot随时断电和上电;
 

7F44CA4A-CFFC-42f0-951A-9ABF9CC15C71.png

0 Likes
Owen_Zhang123
Moderator
Moderator 500 solutions authored 250 sign-ins 1000 replies posted
Moderator

可以按照你说的方法进行搜索,但是要保证从机端的广播包里有相应的数据才能被搜索到。

0 Likes