Questions tagged [json]
The json tag has no summary.
99 questions
1
vote
1
answer
96
views
Reading JSON from Arduino via Serial Missing Parts of Message
I have a project (Digital Dashboard for a Motorhome) in Pi that reads JSON data from an Arduino board and sends it via Serial.
The Pi gets the JSON data, makes some adjustments and then sends it to an ...
0
votes
1
answer
67
views
Problem Parsing NWS Severe Weather Alert API using Arduino_JSON.h [closed]
I have been using Open Weather and Weather Undground APIs for some time. I recently learned the National Weather Service has an API for alerts. I can print out the raw data but not able to parse it. ...
0
votes
1
answer
119
views
Accessing invalid key in ArduinoJson causes ESP32 to reboot [closed]
I am running a project where I have multiple ESP32s communicate over WebSockets and I am using the Arduino IDE 2.3.4 for it. The communication primarily uses JSON and sends it as strings. To work with ...
2
votes
1
answer
237
views
ESP32 webserver with a loaded page fails to update data in elements after sending an Json file, the Json data is printed instead of the loaded page
I have a ESP32 with a web server. In the page where I show the sensor readings and the state of the system, right now the readings are showing themselves well. The problem comes when I want to show ...
0
votes
1
answer
197
views
deserializeJson() failed: NoMemory when sending Serial json using ArduinoJson
Hey all I have a sketch that takes up 99% of my storage space since I am using a Arduino Nano.
Although everything in my code fits as-is, there seems to be an issue with me sending a json string over ...
2
votes
1
answer
266
views
ArduinoJson- unexplained '.size()' behaviour
I'm using an ESP8266, ArduinoJson v6.21.5. PlatformIO, and Vscode.
The config file is saved and read correctly to the ESP8266's flash:
{
"gen_pubTopic": [
"DvirHome/Messages&...
1
vote
2
answers
571
views
Need help with parsing NWS JSON weather alerts causing reset on ESP8266
I'm trying to parse the JSON string from the National Weather Service Alerts and am encountering a problem where the code can't parse the value and the device auto-resets. I've used this code before ...
1
vote
1
answer
308
views
ArduinoJson reading `null` from Serial
I have a setup that reads from serial when I sense that there is something to be read (and always assume that what is sent to the arduino is valid json):
void setup(){
Serial.begin(9600);
...
1
vote
1
answer
876
views
How to add one JsonDocument to another in ArduinoJson
I'm utilizing this json library: https://arduinojson.org/
I am attempting to write a function that creates a response object, and wraps an already built json document:
void sendResponse(
...
2
votes
0
answers
201
views
Using HTTPClient with ESP not working
I have a program running on an esp8266 that attempts to fetch json data from an HTTPS endpoint that is hosted on aws amplify (data comes from a next.js app).
I can retrieve the data correctly when I ...
1
vote
0
answers
67
views
esp8266 r1 mini stops serial print during execution
The setup includes an WEMOS/ESP8266 R1 mini compatible board, a DHT11, a photo resistor and a magnetic reed.
The libs used are:
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include &...
3
votes
1
answer
1k
views
how to transfer json to string?
I am getting a json object from aws iot MQTT. Assuming that json from aws is {status:opened}.
Here is my code.
#include <ArduinoJson.h>
void messageHandler(char *topic, byte *payload, unsigned ...
-1
votes
1
answer
772
views
Best way to get JSON from struct vector class
I have a vector which consist of a struct, see below:
struct FileInformation
{
String name;
size_t filesize;
};
std::vector<FileInformation> FileInformations;
How do I get JSON ...
0
votes
1
answer
1k
views
How to allow cross-domain requests with ESP8266WebServer.h ? - CORS policy: Access-Control-Allow-Origin
With an nodeMCUv2 I want:
to start a wifi server with ESP8266WebServer.h
serve a root html page which will interact with the ESP and fetch external data
Issue:
CORS policy: No 'Access-Control-Allow-...
0
votes
2
answers
992
views
ArduinoJSON :: How to determine Array's size in a DOC conatinaing not only Arrays
Parameter file containing MQTT topics as shown below, is read into StaticJsonDocument<1250> DOC variable.
Size of some groups may differ between MCU's, for example sub_topics_win may contain ...