Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: EthernetNetIf TextLCD mbed
PachubeClient.h
00001 #ifndef PACHUBECLIENT_H_ 00002 #define PACHUBECLIENT_H_ 00003 00004 #include <mbed.h> 00005 #include <HTTPClient.h> 00006 00007 class PachubeClient { 00008 00009 public: 00010 // constructor and destructor 00011 PachubeClient(const string& apiKey); 00012 virtual ~PachubeClient(); 00013 00014 // put csv method to feed 00015 void PutCsv(const string& environmentID, const string& data); 00016 00017 // put csv method to datastream 00018 void PutCsv(const string& environmentID, const string& datastreamID, const string& data); 00019 00020 // http result and response 00021 HTTPResult Result(); 00022 int Response(); 00023 00024 private: 00025 // http client and data 00026 HTTPClient _client; 00027 HTTPText _csvContent; 00028 00029 // http result and response 00030 HTTPResult _result; 00031 int _response; 00032 00033 }; 00034 00035 #endif // PACHUBECLIENT_H_
Generated on Wed Jul 27 2022 06:49:36 by
1.7.2