Station API
PachubeClient Class Reference
Client API for accessing Pachube. More...
#include <PachubeClient.h>
Public Member Functions | |
PachubeClient (int feedid, char *apikey, bool verbose=false) | |
creates an PachubeClient object | |
void | add (int id, float value) |
adds data to the Pachube datastream | |
void | add (char *id, float value) |
adds data to the Pachube datastream | |
bool | update () |
updates datastreams | |
Static Public Member Functions | |
static PachubeClient | create (char *filename, bool verbose=false) |
creates an PachubeClient object |
Detailed Description
Client API for accessing Pachube.
Definition at line 32 of file PachubeClient.h.
Constructor & Destructor Documentation
PachubeClient | ( | int | feedid, |
char * | apikey, | ||
bool | verbose = false |
||
) |
creates an PachubeClient object
- Parameters:
-
feedid Feed ID apikey API Key verbose if true display debug info
Definition at line 41 of file PachubeClient.h.
Member Function Documentation
void add | ( | int | id, |
float | value | ||
) |
adds data to the Pachube datastream
- Parameters:
-
id Datastream ID value value to add
Definition at line 80 of file PachubeClient.h.
void add | ( | char * | id, |
float | value | ||
) |
adds data to the Pachube datastream
- Parameters:
-
id Datastream ID value value to add
Definition at line 90 of file PachubeClient.h.
static PachubeClient create | ( | char * | filename, |
bool | verbose = false |
||
) | [static] |
creates an PachubeClient object
- Parameters:
-
filename name of the configuration file verbose if true display debug info
Definition at line 52 of file PachubeClient.h.
bool update | ( | ) |
Generated on Wed Jul 20 2022 21:57:17 by 1.7.2