This blog post is the fifth of a multi-part series of posts where I explore various peripherals in the ESP32C3 using standard library embedded Rus...
For further actions, you may consider blocking this person and/or reporting abuse
I see you hardcoded the SSID/Password here, how would je pass those on when flashing the device?
Thats correct. If you don't want to hard code then there should be some sort of mechanism that enables you to select between networks at runtime. One possibility is doing it through a serial interface. You could potentially scan for networks, print them for the user, and then acquire input. This could be made much easier if you know the names of the networks and passwords and just need to toggle between them, though it depends on your use case.
Maybe a neat way is building some sort of CLI but that is probably a project on its own.
It's mostly about these values not visible in my code repo and CI/CD
I always try to adhere to best security practices even in small PoCs and hobby projects.
For now, maybe a small .rs file with the values that git ignores would do
If it ever comes to a product, a way to configure this through the serial console might indeed be an option, thanks for the suggestion