root@raspberrypi:/opt# python3 p.py
[21:49:10 2021] url: https://iot.diandeng.tech/api/v1/user/device/diy/auth?authKey=4850f4648643&miType=outlet
[21:49:10 2021] Device Auth Data: {'detail': {'broker': 'blinker', 'deviceName': 'E452B9DAIS9M8OL98BS414LK', 'host': 'mqtts://broker.diandeng.tech', 'iotId': '7ScKMZn8qCrTR4eGBCtBt6ooF4', 'iotToken': 'QykAMBvY4gaCm3Red6AKAURQGqtcmnJE', 'port': '1884', 'productKey': 'blinker', 'uuid': 'fc2be11d22af11ec8df55254'}, 'message': 1000}
[21:49:10 2021] deviceName: E452B9DAIS9M8OL98BS414LK
[21:49:10 2021] iotId: 7ScKMZn8qCrTR4eGBCtBt6ooF4
[21:49:10 2021] iotToken: QykAMBvY4gaCm3Red6AKAURQGqtcmnJE
[21:49:10 2021] productKey: blinker
[21:49:10 2021] uuid: fc2be11d22af11ec8df55254
[21:49:10 2021] broker: blinker
[21:49:10 2021] clientID:
[21:49:10 2021] userName:
[21:49:10 2021] password: QykAMBvY4gaCm3Red6AKAURQGqtcmnJE
[21:49:10 2021] subtopic:
[21:49:10 2021] pubtopic:
Traceback (most recent call last):
File "p.py", line 21, in <module>
Blinker.begin(auth)
File "/usr/local/lib/python3.7/dist-packages/Blinker-0.2.0-py3.7.egg/Blinker/Blinker.py", line 171, in begin
bProto.conn1.start(auth, bProto.aliType, bProto.duerType, bProto.miType)
File "/usr/local/lib/python3.7/dist-packages/Blinker-0.2.0-py3.7.egg/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.
|