Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added an erase.sh script that will erase the Sonoff's flash #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

<a href="https://bmc.xyz/l/SonoffHomekit" target="_blank"><img src="https://raw.githubusercontent.com/Gruppio/Sonoff-Homekit/images/images/buymeacoffee.png" alt="Buy Me A Coffee" width="300" ></a>
Expand Down
8 changes: 8 additions & 0 deletions erase.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

SONOFF_PORT="/dev/cu.wchusbserial14310"

esptool.py \
-p $SONOFF_PORT \
--baud 115200 \
erase_flash