Comments on Official ThingSpeak Library for Arduino and Particle Hans Scharler is an Internet of Things pioneer. He writes about IoT and ThingSpeak IoT platform features. 2019-02-17T21:25:57Z https://blogs.mathworks.com/iot/2015/10/09/official-thingspeak-library-for-arduino-and-particle/feed/atom/ WordPress By: Hans Scharler Hans Scharler https://blogs.mathworks.com/iot/?p=1523#comment-209776 2019-02-17T21:25:57Z 2019-02-17T21:25:57Z In reply to Skipper.

I will look into it. Let me know if you try it.

]]>
By: Skipper Skipper https://blogs.mathworks.com/iot/?p=1523#comment-209774 2019-02-17T21:22:33Z 2019-02-17T21:22:33Z Hi.
Is ThingSpeak also compatible with the new “Arduino Uno Wifi” ABX00021 ?
Best regards Skippers

]]>
By: Robert Robert https://blogs.mathworks.com/iot/?p=1523#comment-199587 2016-11-15T20:39:23Z 2016-11-15T20:39:23Z In reply to Venkatesh.

Hi Venkatesh,

Version 1.0.6 is really old, please update to a more recent version of the Arduino IDE.

Regards

]]>
By: Jason Winters Jason Winters https://blogs.mathworks.com/iot/?p=1523#comment-199586 2016-11-15T13:47:55Z 2016-11-15T13:47:55Z In reply to Venkatesh.

The ThingSpeak library isn’t visible by default. You will first need to add it by going to Sketch -> Include Library -> Manage Libraries. Search for ThingSpeak and install the latest library from there.

]]>
By: Venkatesh Venkatesh https://blogs.mathworks.com/iot/?p=1523#comment-199583 2016-11-14T14:33:28Z 2016-11-14T14:33:28Z Hi ,

I am a first time user of ThingSpeak. I use Arduino Mega 2560 with IDE version 1.0.6. It does not show ThingSpeak library. How do I update ?

Kindly suggest.

Regards.

]]>
By: viru409 viru409 https://blogs.mathworks.com/iot/?p=1523#comment-199090 2016-10-13T09:13:29Z 2016-10-13T09:13:29Z I want to read analog data using ethernet with arduino at thingspeak but following error occurs:

Connecting Arduino to network…

Arduino connected to network using DHCP

Connection to ThingSpeak failed (1)

Connection to ThingSpeak failed (2)

Connection to ThingSpeak failed (3)

Connection to ThingSpeak failed (4)

how to solve this issue

]]>
By: viru409 viru409 https://blogs.mathworks.com/iot/?p=1523#comment-199089 2016-10-13T09:12:27Z 2016-10-13T09:12:27Z I used above code to read analog data using ethernet with arduino at thingspeak but following error occurs:

Connecting Arduino to network…

Arduino connected to network using DHCP

Connection to ThingSpeak failed (1)

Connection to ThingSpeak failed (2)

Connection to ThingSpeak failed (3)

Connection to ThingSpeak failed (4)
……..

how can I solve this issue

]]>
By: Paul Paul https://blogs.mathworks.com/iot/?p=1523#comment-196190 2016-04-03T07:46:15Z 2016-04-03T07:46:15Z Is there any way to check that writing data to TS was successful? I’ve got two ESP8266 based boards reporting temperatures to the same channel with a 180 second delay. Due to hardware timing inaccuracies they slowly drift until one is trying to write data within 15 seconds of the other causing it to fail with gaps in my data.

]]>
By: Rachel Rachel https://blogs.mathworks.com/iot/?p=1523#comment-195772 2016-03-21T15:38:11Z 2016-03-21T15:38:11Z Hi,

I’m trying to install the library with an Arduino Mega and CC3000 wifi shield … but i get lots of errors if I put this in the code: #include “ThingSpeak.h” (I’ve not made any calls yet)

\Documents\Arduino\libraries\thingspeak\src/ThingSpeak.h:86:8: error: #error Only Arduino Yun, Uno/Mega/Due with either Wired or wi-fi Ethernet shield, ESP8266, and Spark Core/Photon/Electron are supported.

\Documents\Arduino\libraries\thingspeak\src/ThingSpeak.h:1469: error: integer constant is too large for ‘long’ type
\Documents\Arduino\libraries\thingspeak\src/ThingSpeak.h:1469: error: integer constant is too large for ‘long’ type

etc…

Is it just not compatible?

]]>
By: Jose Jose https://blogs.mathworks.com/iot/?p=1523#comment-195551 2016-03-08T16:10:43Z 2016-03-08T16:10:43Z Hi,

I am trying to install the ThingSpeak arduino library, but it is not listed in the arduino IDE’s “manage libraries.” I am using arduino IDE version 1.6.7 under Windows. I searched for the “library_index.json” file, but there is not such file in my system. Is there any other way to install this library?
Thanks.

]]>
By: wheato22 wheato22 https://blogs.mathworks.com/iot/?p=1523#comment-195497 2016-03-05T00:52:32Z 2016-03-05T00:52:32Z Thanks for the examples. My current project is to use ThingSpeak to log and visualize my residential water use. I’m stuck trying to find or create a Sketch that will enable my Ardunio with Ethernet to write a single byte Field1 representing my water use in gallon every 20 seconds.

I Attempted to use the Write Voltage example but I’m having a problem making ThingSpeak.writeField work with the output of my counter Sketch which is a Volatile Byte data type. I am using digital pin 2 as my sensor input and tried to success no but n I try to wheserialwrite to a serial

]]>
By: ha ha https://blogs.mathworks.com/iot/?p=1523#comment-194834 2016-02-01T15:18:17Z 2016-02-01T15:18:17Z I cant read the value from ReadLastTemperature. It alway show 0 value

]]>
By: Falyn YOung Falyn YOung https://blogs.mathworks.com/iot/?p=1523#comment-194689 2016-01-24T17:43:03Z 2016-01-24T17:43:03Z Hello,

I am wondering if there is a way to set the parameters for the time for seconds instead of minutes for more data points.

Thanks.

]]>
By: cybericius cybericius https://blogs.mathworks.com/iot/?p=1523#comment-194681 2016-01-24T12:30:34Z 2016-01-24T12:30:34Z No, not compatible with ESP8266 client. Got this error:

WARNING: library ThingSpeak claims to run on [avr] architecture(s) and may be incompatible with your current board which runs on [esp8266] architecture(s).

WeatherStationDemo.ino:33:33: warning: extra tokens at end of #include directive [enabled by default]
WeatherStationDemo.ino:34:34: warning: extra tokens at end of #include directive [enabled by default]
In file included from WeatherStationDemo.ino:36:0:
C:\Users\x\Documents\Arduino\libraries\ThingSpeak\src/ThingSpeak.h:81:8: error: #error Only Arduino Yun, Uno/Mega/Due with either Wired or wi-fi Ethernet shield, and Spark Core/Photon are supported.
#error Only Arduino Yun, Uno/Mega/Due with either Wired or wi-fi Ethernet shield, and Spark Core/Photon are supported.
^
C:\Users\x\Documents\Arduino\libraries\ThingSpeak\src/ThingSpeak.h: In member function ‘bool ThingSpeakClass::writeHTTPHeader(const char*)’:
C:\Users\x\Documents\Arduino\libraries\ThingSpeak\src/ThingSpeak.h:1357:28: error: ‘TS_USER_AGENT’ was not declared in this scope
if (!this->client->print(TS_USER_AGENT)) return false;
^
Error compiling.

]]>
By: Muscluman Muscluman https://blogs.mathworks.com/iot/?p=1523#comment-194461 2016-01-12T21:56:17Z 2016-01-12T21:56:17Z This library is great. I only miss thinghttp support. Is there an easy way to extend this to cover thinghttp?

]]>
By: Rob Purser Rob Purser https://blogs.mathworks.com/iot/?p=1523#comment-194185 2015-12-28T13:05:27Z 2015-12-28T13:05:27Z Hi all,

Version 1.1.0 of these libraries now supports ESP8226 devices, the Particle Electron (coming soon!).

You can use these libraries directly from within the Arduino and Particle IDEs.

All the best,
-Rob

]]>
By: John Laird John Laird https://blogs.mathworks.com/iot/?p=1523#comment-192081 2015-10-23T18:10:10Z 2015-10-23T18:10:10Z In the Particle Photon Library I can’t get the last two examples WriteMultipleVoltages and WriteVoltage (the ones I need) to compile. I get the following error:

In function `ThingSpeakClass::convertFloatToChar(float, char*)’: ThingSpeak/ThingSpeak.h:1444: undefined reference to `dtostrf(double, signed char, unsigned char, char*)’

The other examples compile fine. Can you fix this?

Thanks!

]]>
By: Rob Purser Rob Purser https://blogs.mathworks.com/iot/?p=1523#comment-191222 2015-10-10T23:01:46Z 2015-10-10T23:01:46Z In reply to Stephen.

I’ve found that sometimes the Arduino IDE caches this info, and then doesn’t always update. Assuming you’re using windows, if you go to the AppData/Arduino15 directory, there’s a file called library_index.json. Quit the Arduino IDE, delete that file, and start it up again, and you should be all set.
On my computer, this file is at:
C:\Users
purser\AppData\Roaming\Arduino15
-Rob

]]>
By: Rob Purser Rob Purser https://blogs.mathworks.com/iot/?p=1523#comment-191174 2015-10-10T10:49:40Z 2015-10-10T10:49:40Z Hi all,

There some good conversations and common issues that people encounter over in the forums:

https://community.thingspeak.com/forum/arduino/thingspeak-communication-library-for-arduino/

]]>
By: Stephen Stephen https://blogs.mathworks.com/iot/?p=1523#comment-191100 2015-10-09T18:16:26Z 2015-10-09T18:16:26Z I have 1.6.5r5 installed and there is no ThingSpeak library when checking manage libraries.

]]>