SparkFun Forums 

Where electronics enthusiasts find answers.

All things pertaining to wireless and RF links
By NishantSood
#175683
I'm trying to compile the code for WiFly and Xively service along with the library & instructions available here >> https://github.com/xively/xively_arduino

It says if your are about to use SparkFun's WiFly library then:

If you're on wireless, be sure to enter your SSID and password as the library requires, and then:

If you're using the built-in WiFi library:
Code: Select all
WiFiClient client;
XivelyClient xivelyclient(client);
If you're using the Sparkfun WiFly library:
Code: Select all
WiFlyClient client;
XivelyClient xivelyclient(client);


But I can't create an object "client" since no matching constructor is there within the library and if I make a object with parameters as
Code: Select all
 WiFlyClient client("api.xively.com", 80);
as the constructor wants then I can't use the object "client" to be loaded in
Code: Select all
XivelyClient xivelyclient(client);
?????? what should I do?

ERROR:
Code: Select all
WiFiDatastreamUpload:27: error: no matching function for call to 'XivelyClient::XivelyClient(WiFlyClient&)'