Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

serialize json data issue #9236

Closed
1 task done
gittimotap opened this issue Feb 12, 2024 · 1 comment
Closed
1 task done

serialize json data issue #9236

gittimotap opened this issue Feb 12, 2024 · 1 comment
Labels
Status: Awaiting triage Issue is waiting for triage

Comments

@gittimotap
Copy link

Board

FireBeetle 2 ESP32-E, Beetle ESP32-C3

Device Description

https://wiki.dfrobot.com/SKU_DFR0868_Beetle_ESP32_C3
https://wiki.dfrobot.com/FireBeetle_Board_ESP32_E_SKU_DFR0654

Hardware Configuration

PXL_20240212_082111094 MP
PXL_20240212_082123165 MP
PXL_20240212_082129249 MP
PXL_20240212_082102314 MP

For the Firebeetle 2, https://www.okystar.com/product-item/hc-sr04-ultrasonic-sensor-module-oky3261-2/#tab-id-2 is connected to GND, 3V3, D11 and D12, from GND, VCC, Trig and Echo respectively.
For the Beetle C3, https://bc-robotics.com/shop/jst-ph-2-pin-cable-male-conenctor/ is connected to BAT and GND, https://www.dfrobot.com/product-2463.html is connected to 3V3-RED, GND-BLACK and 4-GREEN also a cable runs from 0 to BAT and GND, with 1M resistors in front of both, for measuring battery voltage.

Version

v2.0.14

IDE Name

Arduino IDE 2.3.0

Operating System

Windows 10 version 22H2

Flash frequency

80Mhz

PSRAM enabled

no

Upload speed

921600

Description

Running basic example script to upload telemetry data to Thingsboard server, getting answer "[TB] Unable to serialize json data". Issue has been reported here thingsboard/thingsboard#10164

Sketch

https://github.com/thingsboard/thingsboard-client-sdk/blob/master/examples/0003-esp8266_esp32_send_data/0003-esp8266_esp32_send_data.ino, only variables for wifi etc have been replaced

Debug Message

16:59:57.275 -> .Connected to AP
16:59:58.286 -> Connecting to: (demo.thingsboard.io) with token (xxxxx)
16:59:58.493 -> Sending temperature data...
16:59:58.493 -> [TB] Unable to serialize json data
16:59:58.493 -> Sending humidity data...
16:59:58.493 -> [TB] Unable to serialize json data
16:59:59.496 -> Sending temperature data...
16:59:59.496 -> [TB] Unable to serialize json data
16:59:59.496 -> Sending humidity data...
16:59:59.496 -> [TB] Unable to serialize json data
17:00:00.466 -> Sending temperature data...
17:00:00.466 -> [TB] Unable to serialize json data

Other Steps to Reproduce

Reproduces on both on premise Thingsboard server and cloud demo, demo,thingsboard.io.
Steps to reproduce:

  1. take an Arduino board
  2. run https://github.com/thingsboard/thingsboard-client-sdk/blob/master/examples/0003-esp8266_esp32_send_data/0003-esp8266_esp32_send_data.ino
  3. use Thingsboard demo (demo.thingsboard.io)

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@gittimotap gittimotap added the Status: Awaiting triage Issue is waiting for triage label Feb 12, 2024
@gittimotap
Copy link
Author

Seems like the issue is with ArduinoJSON library, bblanchon/ArduinoJson#2054

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Awaiting triage Issue is waiting for triage
Projects
None yet
Development

No branches or pull requests

1 participant