-
Notifications
You must be signed in to change notification settings - Fork 14
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
Reconfigure WiFi / Pool address / Wallet #40
Comments
|
Hi Mateo For 4 not sure I understood correctly. What is said on the URL is that ESP8266 has a limitation (for when there is only a single button). Where there are 2 is it already something possible or needs implementation ? The idea is to when pressing it for a few seconds while it is running it resets its current configuration to factory and reboots. I need to test, but I understand that if pressing the flash button before power on the device will not boot and will instead go into a state where it awaits a new flash, or am I confused ? |
You can see it here Line 59 in 2db6981
Basically I check if the button is pressed on start and if so I force the Access Point once again. |
Thanks Mateo |
I recall the single button on esp8266 it's sadly not scriptable because it's just force the reboot |
Ah ok, so we can add its GPIO and handle that. |
@ffrediani do you know by any chance the GPIO for that button? |
Hello @matteocrippa |
As after the first configuration and reboot the web interface stops responding it is useful sometimes to be able to reconfigure the board to connect to another Wifi network, another pool or change the wallet address. It is understandable the web server may use valuable resources that can impact on the hashrate. A few ways I see this can be achieve are:
1 - If simply leaving the web server enabled doesn't use any extra CPU resources when there is no opened connections it can be left with a simple form page that doesn't use CPU resources (like to show updated hashrate or other details) and through the web interface be able to change these details, save and reboot.
2 - If that is not possible, than through the pressing of the flash/boot bottom stop the mining job and start the web server. In order to give feedback to the user blink the ESP light in a certain sequence to confirm the change, and keep blinking in a different way to show that it is not mining and waiting with the web server running.
3 - If the board is taken to another place where the SSID previously configured cannot connect, the ESP notice that after some time, configure itself in AP mode and start the web server for a new configuration.
4 - If none of the above is worth implementing, simply if the flash/boot button is pressed for a few seconds while it is running (not before power on) the ESP resets its configuration and reboot in the default firmware configuration. In the case of ESP8266 Devkit can't the flash/boot button be used for this as well ?
The text was updated successfully, but these errors were encountered: