itead / Sonoff_Devices_DIY_Tools

BSD 3-Clause "New" or "Revised" License
548 stars 168 forks source link

How can the supplied code ever work? #100

Open netadair opened 3 years ago

netadair commented 3 years ago

I wonder how the python code, despite indenting problems, can ever work? In lan_ewlink_ap.py , the set_ota_flash() sends an empty data field, without the downloadUrl or sha256sum. When I try, of course the Mini immediately sends back an error 400.

Of course, when you compare the all present error messages from the supplied Windows binaries, the code base must be different as line numbers in stack traces do not match.

Did anyone ever get it running on Linux with this code?

netadair commented 3 years ago

PS: Also, with the command code being changed to 9 and the Dialog.py still calling 7 (get_signal_intensity) to flash the OTA code is not even called at all...