Go Down

Topic: Cosm library broken? (Read 1 time) previous topic - next topic

scary

Hi, about 6 months ago I had working sketches logging to Cosm. Now all my Cosm sketches- even the examples- won't even compile. What has changed? I'm running Arduino 1.0.1 and I've downloaded the Cosm library again and reinstalled it. No good. Here's the error text when I try to compile the DatastreamUpload example:

Quote

C:\Google Drive\H@CKING\arduino-1.0.1\libraries\Cosm\CosmClient.cpp: In member function 'int CosmClient::put(CosmFeed&, const char*)':
C:\Google Drive\H@CKING\arduino-1.0.1\libraries\Cosm\CosmClient.cpp:12: error: 'HttpClient' was not declared in this scope
C:\Google Drive\H@CKING\arduino-1.0.1\libraries\Cosm\CosmClient.cpp:12: error: expected `;' before 'http'
C:\Google Drive\H@CKING\arduino-1.0.1\libraries\Cosm\CosmClient.cpp:15: error: 'http' was not declared in this scope
C:\Google Drive\H@CKING\arduino-1.0.1\libraries\Cosm\CosmClient.cpp: In member function 'int CosmClient::get(CosmFeed&, const char*)':
C:\Google Drive\H@CKING\arduino-1.0.1\libraries\Cosm\CosmClient.cpp:73: error: 'HttpClient' was not declared in this scope
C:\Google Drive\H@CKING\arduino-1.0.1\libraries\Cosm\CosmClient.cpp:73: error: expected `;' before 'http'
C:\Google Drive\H@CKING\arduino-1.0.1\libraries\Cosm\CosmClient.cpp:76: error: 'http' was not declared in this scope
C:\Google Drive\H@CKING\arduino-1.0.1\libraries\Cosm\CosmClient.cpp:163: error: 'delay' was not declared in this scope



fear my badger

draythomp

I use Cosm, but not the library.  I recently moved some code I have to IDE 1.0.3 and had a bunch of trouble compiling various things because I needed to change an #include.  It needs to change from WProgram.h to Arduino.h .

I suspect you're having the same problem.  Look through the library and see if this is the case.
Trying to keep my house under control http://www.desert-home.com/

scary

Thanks for the reply. I tried adding it to CosmClient.cpp and to the sketch without any improvement.
fear my badger

draythomp

Take a look at the README file, there is another library you have to get. 
Trying to keep my house under control http://www.desert-home.com/

draythomp

Yep, that was it.  The Cosm library requires the HttpClient library to work.  The url of the library is in the Cosm README file.
Trying to keep my house under control http://www.desert-home.com/

Go Up