esp01s-serial-remote-controller

Serial communication from ESP-01S served webpage
Index Commits Files Refs README LICENSE
commit 7af2a5a362dc43abbba4a0bae7ff96ab9eaadfb2
parent 9abad41614ac07781e800db5eec0ca67164d8087
Author: Martin Kloeckner <mjkloeckner@gmail.com>
Date:   Sat, 11 Apr 2026 22:17:59 -0300

Add Wi-Fi credentials instructions to `README.md`

Diffstat:
MREADME.md | 21++++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
@@ -18,7 +18,26 @@ adapter. The ESP must be in programming mode, this is achived by holding
 GPIO0 low during MCU initilization. Once the ESP is ready, flash the firmware
 using PlatformIO console tools.
 
-First flash the main firmware.
+At the moment, this firmware does not implement a Wi-Fi manager, so the firmware
+must be re-flashed whenever the Wi-Fi SSID or password changes. To configure the
+Wi-Fi credentials, environment variables are used during firmware compilation.
+
+To set the environment variables, run the following commands in the same terminal
+session that will be used to compile and flash the firmware.
+
+```console
+$ export WIFI_SSID="hello-world"
+$ export WIFI_PASSWD="12345678"
+```
+
+Alternatively, the Wi-Fi credentials can be defined in the `src/main.cpp` file.
+
+```c
+#define WIFI_SSID "hello-world"
+#define WIFI_PASSWD "12345678"
+```
+
+After setting the credentials, flash the main firmware to the ESP.
 
 ```console
 $ pio run -t upload