The ThingSpeak community site has been upgraded to a new site. This site is currently in read-only mode. You can ask questions or post and read discussions on the new site.

Please consider registering

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —

— Match —

— Forum Options —

Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed sp_TopicIcon
No permission to create posts
January 31, 2012
11:23 am
Cincinnati, OH
New Member
Forum Posts: 3
Member Since:
January 31, 2012
sp_UserOfflineSmall Offline

Just getting started and want to run the "ThingTweet App to Update a Twitter Status". Copied the sketch into the Arduino environment, changing the MAC, and IP info to match my local settings. Inserted the API key for my channel.


When trying to compile and upload to my Arduino UNO, I am getting the following error message:


sketch_jan31a:31: error: no matching function for call to ‘Client::Client(byte [4], int)’
/home/chris/arduino-1.0/hardware/arduino/cores/arduino/Client.h:7: note: candidates are: Client::Client()
/home/chris/arduino-1.0/hardware/arduino/cores/arduino/Client.h:7: note:                 Client::Client(const Client&)
sketch_jan31a:31: error: cannot declare variable ‘client’ to be of abstract type ‘Client’
/home/chris/arduino-1.0/hardware/arduino/cores/arduino/Client.h:7: note:   because the following virtual functions are pure within ‘Client’:
/home/chris/arduino-1.0/hardware/arduino/cores/arduino/Client.h:12: note:     virtual size_t Client::write(uint8_t)
/home/chris/arduino-1.0/hardware/arduino/cores/arduino/Client.h:13: note:     virtual size_t Client::write(const uint8_t*, size_t)
/home/chris/arduino-1.0/hardware/arduino/cores/arduino/Client.h:14: note:     virtual int Client::available()
/home/chris/arduino-1.0/hardware/arduino/cores/arduino/Client.h:15: note:     virtual int Client::read()
/home/chris/arduino-1.0/hardware/arduino/cores/arduino/Client.h:17: note:     virtual int Client::peek()
/home/chris/arduino-1.0/hardware/arduino/cores/arduino/Client.h:18: note:     virtual void Client::flush()
/home/chris/arduino-1.0/hardware/arduino/cores/arduino/Client.h:10: note:     virtual int Client::connect(IPAddress, uint16_t)
/home/chris/arduino-1.0/hardware/arduino/cores/arduino/Client.h:11: note:     virtual int Client::connect(const char*, uint16_t)
/home/chris/arduino-1.0/hardware/arduino/cores/arduino/Client.h:16: note:     virtual int Client::read(uint8_t*, size_t)
/home/chris/arduino-1.0/hardware/arduino/cores/arduino/Client.h:19: note:     virtual void Client::stop()
/home/chris/arduino-1.0/hardware/arduino/cores/arduino/Client.h:20: note:     virtual uint8_t Client::connected()
/home/chris/arduino-1.0/hardware/arduino/cores/arduino/Client.h:21: note:     virtual Client::operator bool()
sketch_jan31a.cpp: In function ‘void updateTwitterStatus(String)’:
sketch_jan31a:73: error: no matching function for call to ‘Client::connect()’
/home/chris/arduino-1.0/hardware/arduino/cores/arduino/Client.h:10: note: candidates are: virtual int Client::connect(IPAddress, uint16_t)
/home/chris/arduino-1.0/hardware/arduino/cores/arduino/Client.h:11: note:                 virtual int Client::connect(const char*, uint16_t)


It does not look like the parameters are correct in this example, or maybe outdated? I am using Arduino 1.0.


Has anyone experienced this and or suggestions to correct?

February 1, 2012
12:24 am
Natick, MA

Forum Posts: 411
Member Since:
January 18, 2011
sp_UserOfflineSmall Offline

I am pretty sure the sketch needs to be updated for Arduino 1.0.

It might be easier to modify this sketch:


If I get some time, I will add Twitter to the sketch for Arduino 1.0 - the big difference is that Arduino 1.0 makes it easy to setup DNS and DHCP.

February 1, 2012
5:45 pm
Cincinnati, OH
New Member
Forum Posts: 3
Member Since:
January 31, 2012
sp_UserOfflineSmall Offline

Thanks for the response. Like I said, I am still trying to get a feel for how things are supposed to work. I have had this issue come up before for other examples. The 1.0 environment is definitely not backwards compatible. If you get a chance to update, that would be great. In the meantime I will dig into the sketch you recommended above.



February 5, 2012
11:12 am
Cincinnati, OH
New Member
Forum Posts: 3
Member Since:
January 31, 2012
sp_UserOfflineSmall Offline

I got this sketch working so it now communicates with my thingSpeak channel and it is logging data, HOWEVER, the input on analog pin 0 just keeps reading "4". I have experimented with a light sensor and a potentiometer to change the values of the input, but channel is still just receiving constant value of "4".


Did the read command get changed in 1.0 and not sending data correctly? Also, what is the DEC variable do in this line?


This is where I am thinking things are going astray:

  String analogPin0 = String(analogRead(A0), DEC);


Any help greatly appreciated!

Forum Timezone: America/New_York

Most Users Ever Online: 166

Currently Online:
30 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

rw950431: 272

Vinod: 240

piajola: 95

turgo: 70

vespapierre: 63

Adarsh_Murthy: 62

Member Stats:

Guest Posters: 1

Members: 8665

Moderators: 1

Admins: 2

Forum Stats:

Groups: 3

Forums: 14

Topics: 1600

Posts: 5760

Newest Members:

Advantagetreeexperts, laundrydaddyuk, techhhelp5, ken, tran, huldacormier

Moderators: cstapels: 460

Administrators: Hans: 405, lee: 457