官网示例,树莓派3B+连网不成功,ESP32正常
问题现象:官网示例,树莓派连网不成功,ESP32正常app版本:2.4.7
android版本:10.0
手机型号:一加6T
库版本:python 2.0
开发板:树莓派3B+
官网示例代码:
https://diandeng.tech/doc/getting-start-python
from Blinker import *
auth = '*********'
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('aabc')
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()
result = Blinker.connect()
print(result)
树莓派要你自己插个网线或者连wifi 树莓派已经连上了WIFI的,代码这里不用再配置WIFI了吧? aw778 发表于 2020-10-10 16:01
树莓派已经连上了WIFI的,代码这里不用再配置WIFI了吧?
不用,如果还有问题,请描述清楚现象,并提供调试信息
页:
[1]