Python3接入Blinker失败
运行示例程序,只把auth换成真实的auth,就出现报错。大佬们看一下这个是啥情况 我解决了,这个库出问题了,0.27版本都不行,安装0.26.3版本就好了 这里是代码#!/usr/bin/env python
# -*- coding: utf-8 -*-
from Blinker import Blinker, BlinkerButton, BlinkerNumber
from Blinker.BlinkerDebug import *
auth = '填入自己的key'
BLINKER_DEBUG.debugAll()
Blinker.mode("BLINKER_WIFI")
Blinker.begin(auth)
button1 = BlinkerButton("btn-abc")
number1 = BlinkerNumber("num-abc")
counter = 0
def button1_callback(state):
""" """
BLINKER_LOG('get button state: ', state)
button1.icon('icon_1')
button1.color('#FFFFFF')
button1.text('Your button name or describe')
button1.print(state)
def data_callback(data):
global counter
BLINKER_LOG("Blinker readString: ", data)
counter += 1
number1.print(counter)
button1.attach(button1_callback)
Blinker.attachData(data_callback)
if __name__ == '__main__':
while True:
Blinker.run() 有大佬能解决一下吗?谢谢! 顶一下帖,来大佬看一下呗 同遇到这个问题,求助 有大佬来看一下吗?顶帖 zeroconf版本造成的问题,我们已经更新限定了其版本:
https://github.com/blinker-iot/blinker-py/blob/master/requirements.txt
页:
[1]