Station API

Dependents:   GMCStation

Embed: (wiki syntax)

« Back to documentation index

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:
feedidFeed ID
apikeyAPI Key
verboseif 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:
idDatastream ID
valuevalue to add

Definition at line 80 of file PachubeClient.h.

void add ( char *  id,
float  value 
)

adds data to the Pachube datastream

Parameters:
idDatastream ID
valuevalue to add

Definition at line 90 of file PachubeClient.h.

static PachubeClient create ( char *  filename,
bool  verbose = false 
) [static]

creates an PachubeClient object

Parameters:
filenamename of the configuration file
verboseif true display debug info

Definition at line 52 of file PachubeClient.h.

bool update (  )

updates datastreams

Returns:
true if succeeded

Definition at line 99 of file PachubeClient.h.