ESP BLE 重新连接 - 重置后将手机重新连接到 BLE 节点

mm_1993
Posts: 65
Joined: Sat Aug 28, 2021 5:16 am

ESP BLE 重新连接 - 重置后将手机重新连接到 BLE 节点

Postby mm_1993 » Mon Dec 27, 2021 2:20 pm

你好
任何人都有 BLE esp-idf 的任何示例代码
我想在重新启动 esp32 后用我的手机重新连接到 ble(esp32),然后不要配对新设备(只是第一次进行新配对),然后连接或自动连接到配对设备
所以我不知道我该怎么办
如果您没有任何来源或不想分享,请说我应该在代码中做什么?

最后我想完全为 BLE Mesh 做这件事

任何人都有(ble mesh)示例代码,用于在重启或关闭节点电源后将手机重新连接到节点?

谢谢你们

ESP_XuLZ
Posts: 173
Joined: Fri Mar 26, 2021 6:04 am

Re: ESP BLE 重新连接 - 重置后将手机重新连接到 BLE 节点

Postby ESP_XuLZ » Tue Jan 04, 2022 3:07 am

你好,我们IDF 下 gatt_security_server 就可以实现这个功能啊,首次配对后,后面可以直接连接这个设备,不需要再配对;一般手机使用 app 诸如 nrf connect 的应用与 esp32 BLE 进行通讯

mm_1993
Posts: 65
Joined: Sat Aug 28, 2021 5:16 am

Re: ESP BLE 重新连接 - 重置后将手机重新连接到 BLE 节点

Postby mm_1993 » Tue Jan 04, 2022 7:27 am

ESP_XuLZ wrote:
Tue Jan 04, 2022 3:07 am
你好,我们IDF 下 gatt_security_server 就可以实现这个功能啊,首次配对后,后面可以直接连接这个设备,不需要再配对;一般手机使用 app 诸如 nrf connect 的应用与 esp32 BLE 进行通讯
谢谢 @ESP_XuLZ
我会试试看。
我也有关于 BLE-Mesh 的问题。
我正在使用 ble-mesh-fast-prov-server 示例,并且我想使用多个移动设备连接到该节点
所以我搜索了很多但我不知道这怎么可能,我应该怎么做。
我的意思是 ESP 节点应该在哪种模式下配置? 服务器或客户端还是我将其用作网关?

Who is online

Users browsing this forum: No registered users and 50 guests