 |
Demo HCI Implementation for WiMOD-LR Devices
V2.0.3
|
Go to the documentation of this file.
27 #ifndef ARDUINO_CAYENNE_CAYENNELPP_H_
28 #define ARDUINO_CAYENNE_CAYENNELPP_H_
55 uint8_t
copy(uint8_t* buffer);
64 uint8_t
addPresence(uint8_t channel, uint8_t value);
69 uint8_t
addGyrometer(uint8_t channel,
float x,
float y,
float z);
70 uint8_t
addGPS(uint8_t channel,
float latitude,
float longitude,
float meters);
72 uint8_t
addCustomValue(uint8_t channel, uint8_t type, uint8_t valueSize, uint8_t* value);
uint8_t addDigitalInput(uint8_t channel, uint8_t value)
intert value of type "digital input" into the message
Definition: CayenneLPP.cpp:153
uint8_t addPresence(uint8_t channel, uint8_t value)
intert value of type "presence" into the message
Definition: CayenneLPP.cpp:264
A simple Cayenne LPP message builder class.
Definition: CayenneLPP.h:47
CayenneLPP(uint8_t *buf, uint8_t size)
Constructor of a simple Cayenne LPP wrapper.
Definition: CayenneLPP.cpp:75
uint8_t copy(uint8_t *buffer)
copy the build up message to an external buffer
Definition: CayenneLPP.cpp:136
uint8_t getSize(void)
get the current size of the build message in bytes
Definition: CayenneLPP.cpp:109
uint8_t addGyrometer(uint8_t channel, float x, float y, float z)
intert value of type "gyrometer" into the message
Definition: CayenneLPP.cpp:387
uint8_t addRelativeHumidity(uint8_t channel, float rh)
intert value of type "relative humidity" into the message
Definition: CayenneLPP.cpp:308
uint8_t addDigitalOutput(uint8_t channel, uint8_t value)
intert value of type "digital output" into the message
Definition: CayenneLPP.cpp:173
uint8_t addAnalogOutput(uint8_t channel, float value)
intert value of type "digital output" into the message
Definition: CayenneLPP.cpp:218
uint8_t addTemperature(uint8_t channel, float celsius)
intert value of type "temperature" into the message
Definition: CayenneLPP.cpp:285
uint8_t addLuminosity(uint8_t channel, uint16_t lux)
intert value of type "Luminosity" into the message
Definition: CayenneLPP.cpp:242
uint8_t addCustomValue(uint8_t channel, uint8_t type, uint8_t valueSize, uint8_t *value)
function to add a generic value
Definition: CayenneLPP.cpp:460
uint8_t * getBuffer(void)
get a pointer to the internal data buffer
Definition: CayenneLPP.cpp:121
~CayenneLPP()
Destructor.
Definition: CayenneLPP.cpp:88
void reset(void)
reset all internal data. Should by called prior building a new message
Definition: CayenneLPP.cpp:97
uint8_t addAccelerometer(uint8_t channel, float x, float y, float z)
intert value of type "accelerometer" into the message
Definition: CayenneLPP.cpp:331
uint8_t addGPS(uint8_t channel, float latitude, float longitude, float meters)
intert value of type "GPS" into the message
Definition: CayenneLPP.cpp:419
uint8_t addBarometricPressure(uint8_t channel, float hpa)
intert value of type "barometric pressure" into the message
Definition: CayenneLPP.cpp:361
uint8_t addAnalogInput(uint8_t channel, float value)
intert value of type "analog input" into the message
Definition: CayenneLPP.cpp:194