Comments (8)
Nilava,
This is mentioned in the installation manual https://hieromon.github.io/AutoConnect/index.html#installation.
@Hieromon, Maybe a good idea to upgrade the software to the latest JSON library.
from autoconnect.
I set an initial goal for support ArduinoJson V6 as a below.
-
The user sketch can be executed with either ArduinoJson V5 or V6.
Depending on the version of ArduinoJson installed, the AutoConnect library builds correctly. -
Supports the PSRAM for ESP32.
JsonBuffer can allocate to the PSRAM. Related the topics:
https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/system/mem_alloc.html#external-spi-memory
bblanchon/ArduinoJson#876
The goal may change with the progress of the task.
from autoconnect.
@ageurtse Yup. This thread tracks in the project as a v0.9.8.
from autoconnect.
@ageurtse Damn i missed that totally! Anyway works perfect now! @Hieromon will be waiting for new release! Its an awesome library! Thanks for making this!
from autoconnect.
It would be awesome if you would lock the arduinojson library to that version in library.json so people don't have to discover this the hard way when using platformio
from autoconnect.
Same as Issue #52
from autoconnect.
I staged ArudonoJson V6 support version as v0.9.8 to the development branch. This version can evaluate the support status of ArduinoJson V6 and requires PageBuilder of development branch to try.
An early documentation for V0.9.8 related ArduinoJson V6 support:
- Supports ArduinoJson 6.9.1 or later.
- Supports allocating JsonDocument buffer to PSRAM on ESP32 with ArduinoJson 6.10.0.
- Supports operator [] as a shortcut for AutoConnectAux::getElement function.
- Supports AutoConnectElement::as function to easily coding for conversion from an AutoConnectElement to an actual type.
It can be described as follows in combination with the operator [].
AutoConnectAux& aux = *portal.aux("/custompage"); // Should be taken as a reference with operator*, not a pointer.
AutoConnectInput& input = aux["input_field"].as<AutoConnectInput>();
String inputValue = input.value;
Also, only the value member does not need conversion by AutoConnectElement::as.
String inputValue = aux["input_field"].value;
However, the current development version does not yet implement direct value assignment. Currently, the following assignment to custom fields is not possible yet.
AutoConnectAux& aux = *portal.aux("/custompage");
aux["input_field"].value = "initial_value"; // It's not possible yet. Not an error but the code is fragile.
AutoConnectText& caption = aux["caption"].as<AutoConnectText>();
caption.value = "Hello, world"; // It's possible.
caption.style = "color:pink"; // It's possible.
Now, open for the bug reports!
from autoconnect.
Merged #57
from autoconnect.
Related Issues (20)
- ESP32 problem HOT 8
- Mqtt Example HOT 2
- Using "AutoConnectCore.h" header and running into errors HOT 2
- AutoConnect to offer captive portal for 5min even if ESP32 is WiFi-Connected HOT 1
- AutoConnect on WiFi connection error shows too many redirects. HOT 2
- AutoConnectCore Not Working HOT 1
- Failing to store network HOT 2
- AutoConnect not longer runningh on ESP8266 HOT 2
- Use Autoconnect library with ESP now HOT 1
- Issue after updating libraries in my PIO project: enableCors() HOT 2
- Strange Issue
- WiFiClientSecure is not working with AutoConnect HOT 1
- how to use esp8266 with WiFiClientSecure
- AutoConnectPageImpl.hpp:1001:20: error: there are no arguments to 'spi_flash_get_chip_size' that depend on a template parameter, so a declaration of 'spi_flash_get_chip_size' must be available [-fpermissive] HOT 2
- Save data from Custom Page to flash HOT 2
- esp32: frozen loop() and kicked out of the WiFi connection at Configure new AP
- WPA2 Enterprise support
- Captive portal cause watchdog triggering
- Possibility to change pass for SoftAP from webui.
- Fresh Install and even the simplest of code will not compile HOT 2
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 autoconnect.