![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Lab3 - Pressure, temperature, and humidity sensors displayed on a webpage.
Dependencies: EthernetNetIf NTPClient_NetServices GPS mbed HTTPServer SDFileSystem
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 Tue Jul 19 2022 00:59:33 by
![doxygen](doxygen.png)