Skip to content

ThingSpeak Communication Library for Arduino, ESP8266 and ESP32 - v1.5.0

Compare
Choose a tag to compare
@jasontwinters jasontwinters released this 05 Apr 18:39
· 3 commits to master since this release
755d5e1

Version 1.5.0 changes:

  • Added support and examples for using AT commands with ESP8266
  • Reduced memory allocated at run-time when writing to multiple fields
  • Switched to using content-length for processing HTTP response.
  • No longer using Connection: close, bytes were getting dropped on some hardware
  • Fixed bug making write operations slow on ESP8266
  • MKR1000 can now use the latest WiFi101 library

This library enables an Arduino or other compatible hardware to write or read data to or from ThingSpeak, an open data platform for the Internet of Things with MATLAB analytics and visualization.

Hardware specific examples are found here. But to give you an idea of usage examples for writing and reading with an ESP8266 are shown below. Complete documentation in aslo shown below.

ThingSpeak offers free data storage and analysis of time-stamped numeric or alphanumeric data. Users can access ThingSpeak by visiting http://thingspeak.com and creating a ThingSpeak user account.

ThingSpeak stores data in channels. Channels support an unlimited number of timestamped observations (think of these as rows in a spreadsheet). Each channel has up to 8 fields (think of these as columns in a speadsheet). Check out this video for an overview.

Channels may be public, where anyone can see the data, or private, where only the owner and select users can read the data. Each channel has an associated Write API Key that is used to control who can write to a channel. In addition, private channels have one or more Read API Keys to control who can read from private channel. An API Key is not required to read from public channels. Each channel can have up to 8 fields. One field is created by default.

You can visualize and do online analytics of your data on ThingSpeak using the built in version of MATLAB, or use the desktop version of MATLAB to get deeper historical insight. Visit https://www.mathworks.com/hardware-support/thingspeak.html to learn more.

Libraries and examples for Particle devices can be found here: https://github.com/mathworks/thingspeak-particle