agent.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:bluetool 作者: emlid 项目源码 文件源码
def run(self):
        _bluetooth.make_discoverable(True, self.timeout)
        _bluetooth.set_adapter_property("Pairable", dbus.Boolean(1))
        _bluetooth.set_adapter_property("PairableTimeout", dbus.UInt32(0))
        self.agent = Agent(self.client_class, self.timeout, self.path)

        if not self._register():
            self.shutdown()
            return

        self._mainloop.run()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号