-
Notifications
You must be signed in to change notification settings - Fork 183
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
is it possible to have update feather in the menu #26
Comments
AutoConnectAux can separate some configuration screen into external files. You can define the following elements in its configuration.
You can load the external file described the above elements in JSON format from SPIFFS or SD and incorporate it into AutoConnectMenu. Each element can be accessed from the sketch. The values of each element entered in the menu can be output to the stream, so you can save it to SPIFFS and reload it from SPIFFS.
It may be possible to isolate the OTA configuration screen and arbitrarily call it from the AutoConnectMenu to execute the OTA. |
Looking good, keep up the good working. I am not using the FS part, don't know how to upload the data folder using Sloeber. i think it is nicer to have the variables from the json file automatic be stored in the file system and not from within the main file. |
when running the example file mqttRSSI.ino the checkbutton isn't stored correct. When storing data in the code within AUX_mqtt_setting this data is displayed. below is my altered code to see what's in the variable's
|
Yes, I also found it. Thank you feedback. I'm revising now. |
In about OTA and HTTP update, I examined the necessity and suitability of implementation. |
well it is not necessary, just for what i'm trying to build it would be nice to have the abilty to update over air. If there is a webupdate, that only would be nice. Maybe, this is something for version 0.98 |
did you solve the problem with reading the settings ? |
Hello @ageurtse, Parameter values storing problem was solved, normal loading and saving of parameters will work. also it works fine with in SPIFFS. {
"name": "period",
"type": "ACRadio",
"label": "Update period",
"value": [
"30 sec.",
"60 sec.",
"180 sec."
],
"arrange": "vertical",
"checked": 1
} The meanings of JSON object keys are as follows.
And then, the Web page is generated as follows. If you simply load it you will see that screen correctly. Input values are also saved correctly, saving will work. But overwrite load does not work. There seems to be a problem with my implementation using std::vector or std::vectorstd::string. aux.loadElement(in, name); It loads and overwrites elements specified by names from the stream or PROGMEM. {
"name": "period",
"type": "ACRadio",
"label": "Update period",
"value": [
"30 sec.",
"60 sec.",
"180 sec.",
"240 sec."
],
"arrange": "vertical",
"checked": 1
} It is necessary to add and display ○240 sec., but the screen will be blank. The generated whole HTML is lost. It seems that the generated HTML instance is destructed. Sometimes, reloading in the browser will display normally. |
Sorry to hear, this is way beyond my programming skills, so i can't help you. Why can't i use the loaded values in my sketch, it seems they aren't loaded.
gives empty values. |
Problem diagnosis advanced a little. Maybe the cause is insufficient memory, but I'll manage. |
A more simple access method is also available. Aux page values are passed to the callback function, you can get the value by accessing it by name.
|
Sorry, my above comment is missing the point.
It's bug. I will do it by New Year's Eve... |
great, thanks a lot. |
@ageurtse, I updated develop branch. In my environment memory leaks seem to be fixed but I continue to test for a while. |
I will look into it, i'm trying to get my hardware for wifi dimmer to work. |
Incorporating the update function into the AutoConnect menu has been postponed in v 0.9.8. You can import WebUpdate in the way posted to Issue #50. |
i would like to see a webupdate feather in the menu, now in the main file i add ArduinoOta.h and ESP8266HTTPUpdateServer.h.
But it would realy be nice that this is implemented within autoconnect.
The text was updated successfully, but these errors were encountered: