提供基于 _bleio 模块的高级别的BLE(低功耗蓝牙)功能。
https://github.com/adafruit/Adafruit_CircuitPython_BLE
CircuitPyton的BLE库
- shaoziyang
- 帖子: 3954
- 注册时间: 2019年 10月 21日 13:48
Re: CircuitPyton的BLE库
Code: Select all
from adafruit_ble import BLERadio
radio = BLERadio()
print("scanning")
found = set()
for entry in radio.start_scan(timeout=60, minimum_rssi=-80):
addr = entry.address
if addr not in found:
print(entry)
found.add(addr)
print("scan done")
-
- 随机主题
- 回复总数
- 阅读次数
- 最新文章
-
- 4回复总数
- 2948 阅读次数
- 最新文章 由 taobaowang
2022年 4月 10日 13:51
-
- 1回复总数
- 931 阅读次数
- 最新文章 由 shaoziyang
2021年 6月 11日 09:26
-
- 2回复总数
- 1000 阅读次数
- 最新文章 由 shaoziyang
2021年 6月 11日 21:21