User Manual

JSON Parsing Demo
This example is a little more advanced - many sites will have API's that give you JSON data. We'll use
ArduinoJSON (https://adafru.it/Evn) to convert that to a format we can use and then display that data on the serial port
(which can then be re-directed to a display of some sort)
First up, use the Library manager to install ArduinoJSON (https://adafru.it/Evo).
Then load the example JSONdemo
By default it will connect to to the Twitter banner image API, parse the username and followers and display them.
Adapting Other Examples
Once you've got it connecting to the Internet you can check out the other examples. The only change you'll want to
make is at the top of the sketches, add:
And then before you check the status() of the module, call the function WiFi.setPins(SPIWIFI_SS, SPIWIFI_ACK,
ESP32_RESETN, ESP32_GPIO0, &SPIWIFI);
// Configure the pins used for the ESP32 connection
#if !defined(SPIWIFI_SS) // if the wifi definition isnt in the board variant
// Don't change the names of these #define's! they match the variant ones
#define SPIWIFI SPI
#define SPIWIFI_SS 10 // Chip select pin
#define SPIWIFI_ACK 7 // a.k.a BUSY or READY pin
#define ESP32_RESETN 5 // Reset pin
#define ESP32_GPIO0 -1 // Not connected
#endif
© Adafruit Industries https://learn.adafruit.com/adafruit-airlift-breakout Page 32 of 36