I noticed that there are several JSON functions in the SDK such as jsontree_set_up and jsontree_write_int.
I would love to make use of them, but I can't find any proper documentation of sample code related to these functions except for a very limited description in the SDK docu.
Is there anyone that has some sample code lying around already that could perhaps be reused?
Thanks!
Building JSON
-
- Posts: 7
- Joined: Thu Jun 04, 2015 2:59 pm
Re: Building JSON
Postby harrys » Mon Jun 22, 2015 2:42 am
Hi,
I'm struggeling with the same problem, like to use the build-in JSON, but need some examples how to use it.
Regards. Harry
I'm struggeling with the same problem, like to use the build-in JSON, but need some examples how to use it.
Regards. Harry
5xESP-01 (MQTT Switch)
2xESP-07 (Test/Dev)
2xESP-07 (Test/Dev)
Re: Building JSON
Postby harrys » Tue Jun 23, 2015 1:17 am
jpenninkhof wrote:Is there anyone that has some sample code lying around already that could perhaps be reused!
Looking for the same information, nobody?
5xESP-01 (MQTT Switch)
2xESP-07 (Test/Dev)
2xESP-07 (Test/Dev)
-
- Posts: 7
- Joined: Thu Jun 04, 2015 2:59 pm
Re: Building JSON
Postby jpenninkhof » Sun Aug 23, 2015 3:25 am
I've built a power strip that currently exchange json data with an MQTT broker. It parses and constructs json using the json functions in the EspressIf SDK. I don't think it's very complicated to comprehend. If you're interested, please have a look at the source code on https://github.com/jpenninkhof/esp_mqtt_switch.
Who is online
Users browsing this forum: No registered users and 50 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.