mirko / SonOTA

Flashing Itead Sonoff devices with custom firmware via original OTA mechanism
GNU General Public License v2.0
717 stars 105 forks source link

Why is WIFI_SSID needed? #157

Closed wewa00 closed 5 years ago

wewa00 commented 5 years ago

"--wifi-ssid WIFI_SSID The ESSID of the WiFi network the device should eventually connect to."

I actually don't see any reason why the Sonoff device should need connect to the home WIFI. Which eventuality is meant here?

sillyfrog commented 5 years ago

That's how the Sonoff downloads the new firmware, SonOTA tells the Sonoff "connect to this WiFi, and download updates from here" (where here is a web server running on your PC).

wewa00 commented 5 years ago

Ok, I thought for that the ITEAD-* network is used.

Are the different files (image_user1-0x01000.bin, ...) downloaded using different networks?

sillyfrog commented 5 years ago

Check out the sections under https://github.com/mirko/SonOTA#update-steps - this outlines what each bit is doing, and further down some more details.