def __init__(self, vs_uuid_base=None, uuid_type=None):
assert isinstance(vs_uuid_base, (list, NoneType)), 'Invalid argument type'
assert isinstance(uuid_type, (int, long, NoneType)), 'Invalid argument type'
if (vs_uuid_base is None) and uuid_type is None:
self.base = [0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00,
0x80, 0x00, 0x00, 0x80, 0x5F, 0x9B, 0x34, 0xFB]
self.type = driver.BLE_UUID_TYPE_BLE
else:
self.base = vs_uuid_base
self.type = uuid_type
ble_driver.py 文件源码
python
阅读 26
收藏 0
点赞 0
评论 0
评论列表
文章目录