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

댓글

댓글을 남기려면 링크 를 클릭하여 MathWorks 계정에 로그인하거나 계정을 새로 만드십시오.