10-10-2016, 08:12 PM
Hi Vladimir,
Ok. Tried to follow the steps you described, however at step3 I get the following error:
D:\Downloads\fw>"c:\Program Files (x86)\Python\python.exe" espota.py --i 192.168.1.102 -f latestVairGit.bin -d -r
22:11:27 [DEBUG]: Options: {'esp_ip': '192.168.1.102', 'auth': '', 'esp_port': 8266, 'progress': True, 'spiffs': False, 'debug': True, 'image': 'latestVairGit.bin'}
22:11:27 [INFO]: Starting on 0.0.0.0:25080
22:11:27 [INFO]: Upload size: 310128
22:11:27 [INFO]: Sending invitation to: 192.168.1.102
Traceback (most recent call last):
File "espota.py", line 302, in <module>
sys.exit(main(sys.argv))
File "espota.py", line 297, in main
return serve(options.esp_ip, options.esp_port, options.auth, options.image,
command)
File "espota.py", line 91, in serve
sent = sock2.sendto(message, remote_address)
TypeError: a bytes-like object is required, not 'str'
Any idea what's going wrong here?
Regards,
Peter
Ok. Tried to follow the steps you described, however at step3 I get the following error:
D:\Downloads\fw>"c:\Program Files (x86)\Python\python.exe" espota.py --i 192.168.1.102 -f latestVairGit.bin -d -r
22:11:27 [DEBUG]: Options: {'esp_ip': '192.168.1.102', 'auth': '', 'esp_port': 8266, 'progress': True, 'spiffs': False, 'debug': True, 'image': 'latestVairGit.bin'}
22:11:27 [INFO]: Starting on 0.0.0.0:25080
22:11:27 [INFO]: Upload size: 310128
22:11:27 [INFO]: Sending invitation to: 192.168.1.102
Traceback (most recent call last):
File "espota.py", line 302, in <module>
sys.exit(main(sys.argv))
File "espota.py", line 297, in main
return serve(options.esp_ip, options.esp_port, options.auth, options.image,
command)
File "espota.py", line 91, in serve
sent = sock2.sendto(message, remote_address)
TypeError: a bytes-like object is required, not 'str'
Any idea what's going wrong here?
Regards,
Peter