Comments on: Official ThingSpeak Library for Arduino and Particle https://blogs.mathworks.com/iot/2015/10/09/official-thingspeak-library-for-arduino-and-particle/?s_tid=feedtopost Hans Scharler is an Internet of Things pioneer. He writes about IoT and ThingSpeak IoT platform features. Sun, 17 Feb 2019 21:25:57 +0000 hourly 1 https://wordpress.org/?v=6.1.1 By: Hans Scharler https://blogs.mathworks.com/iot/2015/10/09/official-thingspeak-library-for-arduino-and-particle/#comment-209776 Sun, 17 Feb 2019 21:25:57 +0000 https://blogs.mathworks.com/iot/?p=1523#comment-209776 In reply to Skipper.

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

]]>
By: Skipper https://blogs.mathworks.com/iot/2015/10/09/official-thingspeak-library-for-arduino-and-particle/#comment-209774 Sun, 17 Feb 2019 21:22:33 +0000 https://blogs.mathworks.com/iot/?p=1523#comment-209774 Hi.
Is ThingSpeak also compatible with the new “Arduino Uno Wifi” ABX00021 ?
Best regards Skippers

]]>
By: Robert https://blogs.mathworks.com/iot/2015/10/09/official-thingspeak-library-for-arduino-and-particle/#comment-199587 Tue, 15 Nov 2016 20:39:23 +0000 https://blogs.mathworks.com/iot/?p=1523#comment-199587 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 https://blogs.mathworks.com/iot/2015/10/09/official-thingspeak-library-for-arduino-and-particle/#comment-199586 Tue, 15 Nov 2016 13:47:55 +0000 https://blogs.mathworks.com/iot/?p=1523#comment-199586 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 https://blogs.mathworks.com/iot/2015/10/09/official-thingspeak-library-for-arduino-and-particle/#comment-199583 Mon, 14 Nov 2016 14:33:28 +0000 https://blogs.mathworks.com/iot/?p=1523#comment-199583 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 https://blogs.mathworks.com/iot/2015/10/09/official-thingspeak-library-for-arduino-and-particle/#comment-199090 Thu, 13 Oct 2016 09:13:29 +0000 https://blogs.mathworks.com/iot/?p=1523#comment-199090 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 https://blogs.mathworks.com/iot/2015/10/09/official-thingspeak-library-for-arduino-and-particle/#comment-199089 Thu, 13 Oct 2016 09:12:27 +0000 https://blogs.mathworks.com/iot/?p=1523#comment-199089 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 https://blogs.mathworks.com/iot/2015/10/09/official-thingspeak-library-for-arduino-and-particle/#comment-196190 Sun, 03 Apr 2016 07:46:15 +0000 https://blogs.mathworks.com/iot/?p=1523#comment-196190 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 https://blogs.mathworks.com/iot/2015/10/09/official-thingspeak-library-for-arduino-and-particle/#comment-195772 Mon, 21 Mar 2016 15:38:11 +0000 https://blogs.mathworks.com/iot/?p=1523#comment-195772 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 https://blogs.mathworks.com/iot/2015/10/09/official-thingspeak-library-for-arduino-and-particle/#comment-195551 Tue, 08 Mar 2016 16:10:43 +0000 https://blogs.mathworks.com/iot/?p=1523#comment-195551 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 https://blogs.mathworks.com/iot/2015/10/09/official-thingspeak-library-for-arduino-and-particle/#comment-195497 Sat, 05 Mar 2016 00:52:32 +0000 https://blogs.mathworks.com/iot/?p=1523#comment-195497 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 https://blogs.mathworks.com/iot/2015/10/09/official-thingspeak-library-for-arduino-and-particle/#comment-194834 Mon, 01 Feb 2016 15:18:17 +0000 https://blogs.mathworks.com/iot/?p=1523#comment-194834 I cant read the value from ReadLastTemperature. It alway show 0 value

]]>
By: Falyn YOung https://blogs.mathworks.com/iot/2015/10/09/official-thingspeak-library-for-arduino-and-particle/#comment-194689 Sun, 24 Jan 2016 17:43:03 +0000 https://blogs.mathworks.com/iot/?p=1523#comment-194689 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 https://blogs.mathworks.com/iot/2015/10/09/official-thingspeak-library-for-arduino-and-particle/#comment-194681 Sun, 24 Jan 2016 12:30:34 +0000 https://blogs.mathworks.com/iot/?p=1523#comment-194681 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 https://blogs.mathworks.com/iot/2015/10/09/official-thingspeak-library-for-arduino-and-particle/#comment-194461 Tue, 12 Jan 2016 21:56:17 +0000 https://blogs.mathworks.com/iot/?p=1523#comment-194461 This library is great. I only miss thinghttp support. Is there an easy way to extend this to cover thinghttp?

]]>
By: Rob Purser https://blogs.mathworks.com/iot/2015/10/09/official-thingspeak-library-for-arduino-and-particle/#comment-194185 Mon, 28 Dec 2015 13:05:27 +0000 https://blogs.mathworks.com/iot/?p=1523#comment-194185 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 https://blogs.mathworks.com/iot/2015/10/09/official-thingspeak-library-for-arduino-and-particle/#comment-192081 Fri, 23 Oct 2015 18:10:10 +0000 https://blogs.mathworks.com/iot/?p=1523#comment-192081 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 https://blogs.mathworks.com/iot/2015/10/09/official-thingspeak-library-for-arduino-and-particle/#comment-191222 Sat, 10 Oct 2015 23:01:46 +0000 https://blogs.mathworks.com/iot/?p=1523#comment-191222 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 https://blogs.mathworks.com/iot/2015/10/09/official-thingspeak-library-for-arduino-and-particle/#comment-191174 Sat, 10 Oct 2015 10:49:40 +0000 https://blogs.mathworks.com/iot/?p=1523#comment-191174 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 https://blogs.mathworks.com/iot/2015/10/09/official-thingspeak-library-for-arduino-and-particle/#comment-191100 Fri, 09 Oct 2015 18:16:26 +0000 https://blogs.mathworks.com/iot/?p=1523#comment-191100 I have 1.6.5r5 installed and there is no ThingSpeak library when checking manage libraries.

]]>