本帖最后由 南岛孤云 于 2021-5-4 16:17 编辑
树莓派连点灯,python3.7.3,
出现以下错误,myblinker.py 里除了初始化什么也没有。
试过官方的example,相同报错。
仅列出错误部分,前面云端密匙验证貌似正常。
> Traceback (most recent call last):
> File "myblinker.py", line 9, in <module>
> Blinker.begin(auth)
> File "/home/pi/blinker-py/Blinker/Blinker.py", line 171, in begin
> bProto.conn1.start(auth, bProto.aliType, bProto.duerType, bProto.miType)
> File "/home/pi/blinker-py/BlinkerAdapters/BlinkerMQTT.py", line 328, in start
> self.client.connect(self.bmqtt.host, self.bmqtt.port, 60)
> File "/usr/local/lib/python3.7/dist-packages/paho_mqtt-1.5.1-py3.7.egg/paho/mqtt/client.py", line 940, in connect
> bind_address, bind_port, clean_start, properties)
> File "/usr/local/lib/python3.7/dist-packages/paho_mqtt-1.5.1-py3.7.egg/paho/mqtt/client.py", line 1005, in connect_async
> raise ValueError('Invalid host.')
> ValueError: Invalid host.
|