Hans on IoT

ThingSpeak, MATLAB, and the Internet of Things

ThingSpeak Java Client for “Internet of Things Applications”

[Andrew Bythell] created a ThingSpeak Java Client for the complete ThingSpeak API. This Java Client makes it really easy for Java (or Processing) developers to add cloud connectivity to applications and non-networked devices. “The purpose of the ThingSpeak Java client is to enable non-networked Device-to-ThingSpeak gateways and other applications for performing advanced analysis of data feeds,” said Andrew.

Java ThingSpeak Client IoT

So, by using Java, a simple “Hello World” app becomes this easy…

Channel channel = new Channel(channelNumber, apiWriteKey);
Entry entry = new Entry();
entry.setField(1, "Hello World");
channel.update(entry);

 

All of the source code and documentation are available on GitHub. Get started right away with building your Internet of Things with the Java Programming Language and the ThingSpeak Cloud.

Excellent work Andrew – thanks for contributing to the Open Source ThingSpeak Community!

[via Angry Electron / GitHub]

|
  • print

Comments

To leave a comment, please click here to sign in to your MathWorks Account or create a new one.