Giter Site home page Giter Site logo

Comments (8)

ageurtse avatar ageurtse commented on August 18, 2024 1

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.

Hieromon avatar Hieromon commented on August 18, 2024 1

I set an initial goal for support ArduinoJson V6 as a below.

  1. The user sketch can be executed with either ArduinoJson V5 or V6.
    Depending on the version of ArduinoJson installed, the AutoConnect library builds correctly.

  2. 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.

Hieromon avatar Hieromon commented on August 18, 2024

@ageurtse Yup. This thread tracks in the project as a v0.9.8.

from autoconnect.

nilava avatar nilava commented on August 18, 2024

@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.

cujomalainey avatar cujomalainey commented on August 18, 2024

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.

Hieromon avatar Hieromon commented on August 18, 2024

Same as Issue #52

from autoconnect.

Hieromon avatar Hieromon commented on August 18, 2024

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:

  1. Supports ArduinoJson 6.9.1 or later.
  2. Supports allocating JsonDocument buffer to PSRAM on ESP32 with ArduinoJson 6.10.0.
  3. Supports operator [] as a shortcut for AutoConnectAux::getElement function.
  4. 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.

Hieromon avatar Hieromon commented on August 18, 2024

Merged #57

from autoconnect.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.