读取设备GATT特征值
用于读取指定连接设备指定Handle的值。
参考RESTful-API Read the Value of a Specific Characteristic
示例
1import asyncio
2import cassiablue
3
4
5async def main():
6 print("start gatt read")
7 addr = "20:00:00:00:00:01"
8 handle = 44
9 ok, ret = await cassiablue.gatt_read(addr, handle)
10 print("gatt read done:", type(ok), ok, type(ret), ret)
11
12
13asyncio.run(main())