Questions tagged [arduinojson]

46 questions
0
votes
0 answers

Error compiling for board esp32 Dev Module

Error compiling for board ESP32 Dev module. Hello! I'm here seeking your assistance please. I have been working with arduino and esp32 module for posting some data to a dedicated platform. However, upon modifying the data to json supported format as…
0
votes
1 answer

Create Json Object with ArduinoJson 6

So im trying to create and json with 4 of the same objects in it but cant seem to get it to work using ArduinoJson 6, version 5 looks easier to use with .createObject but curious why they removed it in 6 cause there must still be a way to do it. Is…
Corey673
  • 23
  • 4
0
votes
0 answers

can´t emit via ethernet to my server on javascript?

hello, good day, I am making an example with a 5500 chip in esp32 with the socketioclient library, but when I want to send the json to my server, they are only left on the waiting list and I don't know what is happening to me, before all this an…
Andre
  • 1
0
votes
1 answer

Can not declare dependency to bblanchon/ArduinoJson in my library.json (platform io)

I am creating a platform IO library for one of my projects, which depends on ArduinoJson from bblanchon. I have declared the dependency in my library.json file (both with the name as well as with the git repository as reference - see below). But…
chof747
  • 16
  • 2
0
votes
1 answer

Why is my Arduino MKR NB 1500 stuck after sending or receiving a couple of MQTT messages?

Good morning everyone, newcomer writing his first question here (and new to C++/OOP). So, i'm currently working on a project in which i have to send 2 types of JSON payloads to a MQTT broker after regular intervals (which can be set by sending a…
AleG94
  • 11
  • 3
0
votes
1 answer

How to save JSON parsing values to an array in ArduinoJson

Arduino users, help pls! Hi guys! For example, I have a JSON document for parsing ArduinoJson: { "id": [ 1, 7, 32, 9656 ] } I need to save the id values so that they look like: ids[0] = 1, ids[1] = 7, ids[2] = 32and so on. Now…
0
votes
0 answers

Create a lookup table for array of classes in C++/Arduino

I have multiple types of classes. Each type has an array and an index in the array. If an outside function knows only a string ID of a class and wants to use it's public function, it must search for that particular class by ID in it's array. This is…
Dr.Random
  • 430
  • 3
  • 16
0
votes
1 answer

How to check if a value is literally null

I have an JSON object like this: { "foo": null } How do I check if the value of foo is a literal null. I found the function JsonObject::isNull() but that apparently is for testing whether the JsonObject points to an object or not That is not what…
Wouterr
  • 516
  • 7
  • 16
0
votes
1 answer

How to copy all members of a json object to a 2d array given that the object name matches (ArduinoJson)

I am working on an Arduino project that will mix cocktails for me. I've decided to save a list of cocktails in a JSON file named cocktails.json, which is saved on an SD card, and upon cocktail selection, I would like the Arduino to find its recipe…
Jeebus
  • 3
  • 4
0
votes
1 answer

esp8266 crashes when sending json object and resets

Hallo I am trying to send a JSON object useing the arduinoJson library. Everything works fine when it is a small json object, but when it gets larger the esp8266 crashes and resets. I can see when debugging that it creates the json object, but when…
0
votes
2 answers

How do I get Visual Studio Code to include non-standard libraries with angle brackets <>?

I am trying to run a program using the ArduinoJson library with the VSC extension Code Runner but I cannot compile it. There are no markup errors or warnings in VSC but when I try to run this snippet: #include…
0
votes
1 answer

"deserializeJson() failed: NoMemory" Error with my NodeMcu-Mx with ESP8266

Im making a little project with my NodeMCU Mx with ESP8266, but ArduinoJson lib tells me there's an error. I just want to fetch the data inside my json file and use the data as variable, in order to print it on a LCD display. It was working at the…
0
votes
1 answer

How to properly format this object to not have duplicate data inside it?

I have an HTML form where the user can add time data ( start and end ) to the form and can select multiple days to save it. ( this is for a circular pump daily on off time for every day ). The form looks like this from the user point of view This is…
Dr.Random
  • 430
  • 3
  • 16
0
votes
1 answer

Free memory created by instantiating base class with parent type that has protected destructor

I think this is probably a really simple question, but I am as much a C++ developer as the guys at the walmart meat counter are butchers. Say I have: class Parent{ protected: ~Parent(){}; }; class ChildA : public Parent{ }; struct…
Matthew Goulart
  • 2,873
  • 4
  • 28
  • 63
0
votes
1 answer

Arduino Sensor API Webserver

When I load this code into my Arduino, he connects with the WiFi and shows up at my IP-Scanner. But when I open the IP of the device in FireFox nothing loads. (http://10.0.0.40/env) Is there an issue with my code, or doesnt it work like this. I have…
Lukas
  • 31
  • 1
  • 5