From 299ef3642e24cc4014988626f4c5f6e565c56e95 Mon Sep 17 00:00:00 2001 From: Rick van der Linden Date: Sun, 24 Nov 2019 21:08:34 +0100 Subject: [PATCH] Added an erase.sh script that will erase the Sonoff's flash to fix WiFi connectivity issues --- README.md | 4 ++++ erase.sh | 8 ++++++++ 2 files changed, 12 insertions(+) create mode 100644 erase.sh 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