Building JSON

jpenninkhof
Posts: 7
Joined: Thu Jun 04, 2015 2:59 pm

Building JSON

Postby jpenninkhof » Sat Jun 13, 2015 3:08 am

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!

harrys
Posts: 4
Joined: Mon May 25, 2015 3:13 pm
Location: The Netherlands

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
5xESP-01 (MQTT Switch)
2xESP-07 (Test/Dev)

harrys
Posts: 4
Joined: Mon May 25, 2015 3:13 pm
Location: The Netherlands

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)

jpenninkhof
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