my_client.py 文件源码

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

项目:flic-hue 作者: richardtguy 项目源码 文件源码
def got_button(bd_addr):
    cc = fliclib.ButtonConnectionChannel(bd_addr)
    # Assign function to call when a button is clicked
    cc.on_button_single_or_double_click_or_hold = click_handler
    cc.on_connection_status_changed = \
        lambda channel, connection_status, disconnect_reason: \
            log.info(channel.bd_addr + " " + str(connection_status) + (" " + str(disconnect_reason) if connection_status == fliclib.ConnectionStatus.Disconnected else ""))
    client.add_connection_channel(cc)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号