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

Advanced setConfigSavedCallback - provide parameters classes changed #270

Open
NilsRo opened this issue Nov 1, 2022 · 0 comments
Open

Comments

@NilsRo
Copy link

NilsRo commented Nov 1, 2022

Hi,

to make the handling after saving changed parameters easier (e.g. to avoid the standard restart like done in the examples) it would be nice if all "changed" parameters can be provided to the callback. As the eeprom is at this step it is perhaps easy to add it.

This would make it easier to reload e.g. the MQTT client only of the MQTT server is changed which would not interfere with other components.

Something like:
void configSaved(e.g. Array of params classes)
{
Serial.println("Configuration saved.");
if ( contains MQTT server)
{
restartMQTT();
}
// Not anymore ncessary: needReset = true;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant