Hello everybody,
I would like to do a json request in the Spark Core. I have been googling, and that is what I have found:
/*
PubNub sample JSON-parsing client with WiFi support
This combines two sketches: the PubNubJson example of PubNub library
and the WifiWebClientRepeating example of the WiFi library.
This sample client will properly parse JSON-encoded PubNub subscription
replies using the aJson library. It will send a simple message, then
properly parsing and inspecting a subscription message received back.
This is achieved by integration with the aJson library. You will need
a version featuring Wiring Stream integration, that can be found
at http://github.com/pasky/aJson as of 2013-05-30.
Circuit:
* Wifi shield attached to pins 10, 11, 12, 13
* (Optional) Analog sensors attached to analog pin.
* (Optional) LEDs to be dimmed attached to PWM pins 8 and 9.
This file has been truncated. show original
I have also found an API for CC3000 but I have not achieved anything useful…
http://api.tst-sistemas.es/api_versions.html
Thank you very much!!
zach
May 22, 2014, 12:16am
2
hi @javier_pelaez - good question! First, let’s step back; what are you trying to accomplish? there may be a much easier way to do this using the Cloud, but it’d be great to know what you’re building so we can help.
Z
1 Like
Just in case, here is a link to a JSON parser tested with the Spark.
1 Like