Comments (10)
Hi,
Been really busy over the last period. What about the parameters do you not understand?
If you are using the simple.ino
sketch, then the example in the readme for PUT should work. This is how I test it. The "key" should be the name (first parameter) given to the parameter. The second is the pointer to the variable that will be set. In the case of a string parameter there is a 3rd parameter which is the length of the []char
. There are other options, but you dont need to worry about them for now.
I stuff is packed away at them moment, and wont be able to get it out for a couple days. If you would like to try and post your code here, I can have a look at it, otherwise i will try make something up for you in a bit.
from configmanager.
I too would like to see an example to GET a value. I've successfully run the sample and added a few fields to index.html and it works, but I'm not sure how to use endpoints. Just a few lines of code to demonstrate is all I need.
Great library by the way, just what I need. Thanks.
from configmanager.
As soon as I get a chance, I will post some code. Can you tell me what would help with regards to the README to clear this up?
from configmanager.
Thanks, no rush. If you would add a few more fields to index.html, then extend sample.ino to retrieve them to variables after "save" is clicked, that's all I need. I will ultimately add around 30 fields to input data, all either text or dropdowns.
from configmanager.
That isnt the actual purpose of the index.html
. Its purpose is mainly to connect to the Wifi network. It was always the goal that the settings should be managed from an external page, hence the REST style settings get/put. The way I have used it is to do a GET first to "discover" the parameters and values, and build the settings form on the fly. Then updates can be PUT back in.
from configmanager.
Thanks for the explanation. If you have time, an example would really help.
from configmanager.
I've been stumped by this too, mainly as the callback wasn't working with the sample code. I've finally got something working so I'm more than happy to add it to the example, if it's of use to others.
from configmanager.
Sorry, i have not had time to get to this. Could you perhaps include a second example with your code? Under a new folder under examples
. That would be greatly appreciated.
from configmanager.
@nrwiersma, no worries, I know how that goes.
Sweet, that works for me, I'm just doing some clean up but I'll push something today or other the weekend 👌
from configmanager.
Fixed by #41.
from configmanager.
Related Issues (20)
- Unable to save WiFi settings to EEPROM [esp32] HOT 3
- Saving char arrays in EEPROM HOT 2
- Delay restarting device to allow web server response
- ConfigManager::begin() changes value of int in struct HOT 22
- Metadata adding config values HOT 2
- reading and writing from struct config data HOT 2
- Compiler warning HOT 1
- CORS errors HOT 6
- How can I make it to auto reconnect? HOT 4
- not possible to save the value 0 via settings.html
- Issue using LittleFS HOT 1
- Compiling / version issue with ArduinoJson HOT 3
- settings endpoint will only return last saved value HOT 5
- image file (.jpg/.png) cannot be used in index.html HOT 3
- v3 tracking issue HOT 11
- Saving config with wrong type wipes EEPROM memory HOT 3
- ESP32 Wifi Sucks .. connects every two tries .. Workaround thoughts HOT 4
- Problems with with variables in the sketch HOT 9
- One little problem with one parameter HOT 5
- Is it possible to send a Webpage from ESP32 ? HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from configmanager.