Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A ArduinoJson
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 24
    • Issues 24
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Benoît Blanchon
  • ArduinoJson
  • Issues
  • #370
Closed
Open
Issue created Oct 11, 2016 by Administrator@rootContributor

Compiler crash when add EasyTransfer library

Created by: choncba

Hello everyone, first of all I want to congratulate the creator of this excellent library. I use a ESP8266 ESP12 , in one of my projects I use EasyTransfer library (https://github.com/madsci1016/Arduino-EasyTransfer) to synchronize with another arduino via serial link. When trying to compile ArduinoJSON with this compiler fails with the following message:

ArduinoJson.hpp:11: In file included from
ArduinoJson.h:8: from
ArduinoJson.h:8: from
RiegoControlV4ESP.ino:47: from
JsonArray.hpp: In instantiation of typename ArduinoJson::Internals::JsonVariantAs<T>::type ArduinoJson::JsonArray::get(size_t) const [with T = char; typename ArduinoJson::Internals::JsonVariantAs<T>::type = char; size_t = unsigned int]
JsonArraySubscript.hpp:55: required from typename ArduinoJson  Internals  JsonVariantAs<T>  type ArduinoJson  JsonArraySubscript  as() const [with T = char; typename ArduinoJson  Internals  JsonVariantAs<T>  type = char]
JsonVariantBase.hpp:61: required from const typename ArduinoJson  Internals  JsonVariantAs<T>  type ArduinoJson  JsonVariantBase<TImpl>  as() const [with T = char; TImpl = ArduinoJson  JsonArraySubscript; typename ArduinoJson  Internals  JsonVariantAs<T>  type = char]
JsonVariantBase.hpp:56: required from ArduinoJson  JsonVariantBase<TImpl>  operator T() const [with T = char; TImpl = ArduinoJson  JsonArraySubscript]
RiegoControlV4ESP.ino:583: required from here

JsonArray.hpp: 142:17: error: no matching function for call to 'ArduinoJson::JsonVariant::as()
   JsonVariant::defaultValue<T>()
JsonArray.hpp:142: note  candidates are

This library uses malloc () to allocate memory.

Any ideas?

Thanks.-

Assignee
Assign to
Time tracking