mirror of
https://github.com/alexhopeoconnor/WiFiManager.git
synced 2026-10-22 10:42:10 +10:00
Add WiFiManagerRequestArgs class and update saveParamsCallback to pass request arguments
- Created WiFiManagerRequestArgs nested class to encapsulate HTTP request arguments - Updated setSaveParamsCallback to accept WiFiManagerRequestArgs by value - Updated handleWifiSave() and handleParamSave() to build RequestArgs early - Updated doParamSave() to accept and use RequestArgs for custom HTML params - Updated test callbacks to match new signature - All tests passing (43/43)
This commit is contained in:
@@ -29,8 +29,10 @@ void pre_save_config_callback() {
|
||||
pre_save_config_callback_fired = true;
|
||||
}
|
||||
|
||||
void save_params_callback() {
|
||||
void save_params_callback(WiFiManager::WiFiManagerRequestArgs requestArgs) {
|
||||
save_params_callback_fired = true;
|
||||
// Test that we can access request args
|
||||
(void)requestArgs; // Suppress unused variable warning
|
||||
}
|
||||
|
||||
void pre_save_params_callback() {
|
||||
|
||||
Reference in New Issue
Block a user