diff --git a/README.md b/README.md index 4f732d2..4577fc5 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,10 @@ By default the Sonoff will have a Enabled state at power on, you can change this Done! 🎉 +## Troubleshooting + +If the Captive Portal does not close after inserting your WiFi password (and also doesn't connect to your WiFi) then you can run the `erase.sh` script, which will completely erase your Sonoff's flash. After running `erase.sh` you should reflash the Sonoff by following the normal installation instructions. This will most likely solve the issue. + ## If you like this project please: Buy Me A Coffee diff --git a/erase.sh b/erase.sh new file mode 100644 index 0000000..5912de0 --- /dev/null +++ b/erase.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +SONOFF_PORT="/dev/cu.wchusbserial14310" + +esptool.py \ + -p $SONOFF_PORT \ + --baud 115200 \ + erase_flash \ No newline at end of file