我在使用buletooth的时候无法搜索到ESP32的信号,麻烦帮我看一下问题出在哪里,或者有简单的模板可以套用吗,谢谢
[edit by moderator: Hello everyone
When I use bluetooth, I can’t search for the ESP32 signal. Please help me to find out where the problem is, or is there a simple template to apply, thank you]
Code: Select all
from machine import Pin
import os
import ubluetooth
bt = ubluetooth.BLE()
bt.active(1)
bt.gap_advertise(100,'pythonESP32')
[edit: The following is the message returned from the command line]
download ok
exec(open('./bt.py').read(),globals())
GAP procedure initiated: advertise; disc_mode=2 adv_channel_map=7 own_addr_type=0 adv_filter_policy=0 adv_itvl_min=0 adv_itvl_max=0