Expand description
This crate is a port of the Cayenne LPP (Low Power Payload) API. It provides an easy way to send data over LPWAN networks such as LoRaWAN. Cayenne LPP is compliant with payload size restrictions, which can be lowered down to 11 bytes and allows the device to send multiple sensor data at one time.
Additionally, it is also possible to send different sensor data in different frames. To do this, the channel value of the data can be used.
The original C++ version of Cayenne LPP can be found here.
Structs§
- CayenneLPP
- This struct contains the data of the added payload objects and an index that points to the next free value in the array. All newly added values will increase the index. After adding all the values, the buffer contains the payloads of the different data types and has a length of ’‘index’’.
- CayenneLPP
Scalar - Single value parsed from a CayenneLPP data structure, invluding the enumeration of its value and it’s channel.
Enums§
- CayenneLPP
Value - Enumeration of the CayenneLPP value that are supported by this library
Constants§
- LPP_
ACCELEROMETER - Data type of accelerometer values
- LPP_
ACCELEROMETER_ SIZE - Size of an accelerometer packet including channel and data type
- LPP_
ALTITUDE - Data type of an altitude
- LPP_
ALTITUDE_ SIZE - Size of an altitude packet including channel and data type
- LPP_
ANALOG_ INPUT - Data type of an analog input
- LPP_
ANALOG_ INPUT_ SIZE - Size of an analog input packet including channel and data type
- LPP_
ANALOG_ OUTPUT - Data type of an analog output
- LPP_
ANALOG_ OUTPUT_ SIZE - Size of an analog output packet including channel and data type
- LPP_
BAROMETRIC_ PRESSURE - Data type of a barometric pressure value
- LPP_
BAROMETRIC_ PRESSURE_ SIZE - Size of a barometric pressure packet including channel and data type
- LPP_
COLOR - Data type of a color value
- LPP_
COLOR_ SIZE - Size of a color packet including channel and data type
- LPP_
CONCENTRATION - Data type of a concentration
- LPP_
CONCENTRATION_ SIZE - Size of a concentration packet including channel and data type
- LPP_
CURRENT - Data type of a current value
- LPP_
CURRENT_ SIZE - Size of a current packet including channel and data type
- LPP_
DIGITAL_ INPUT - Data type of a digital input
- LPP_
DIGITAL_ INPUT_ SIZE - Size of a digital input packet including channel and data type
- LPP_
DIGITAL_ OUTPUT - Data type of a digital output
- LPP_
DIGITAL_ OUTPUT_ SIZE - Size of a digital output packet including channel and data type
- LPP_
DIRECTION - Data type of a direction value
- LPP_
DIRECTION_ SIZE - Size of a direction packet including channel and data type
- LPP_
DISTANCE - Data type of a distance value
- LPP_
DISTANCE_ SIZE - Size of a distance packet including channel and data type
- LPP_
ENERGY - Data type of an energy value
- LPP_
ENERGY_ SIZE - Size of an energy packet including channel and data type
- LPP_
FREQUENCY - Data type of a frequency value
- LPP_
FREQUENCY_ SIZE - Size of a frequency packet including channel and data type
- LPP_
GENERIC_ SENSOR - Data type of a generic sensor
- LPP_
GENERIC_ SENSOR_ SIZE - Size of a generic sensor packet including channel and data type
- LPP_GPS
- Data type of GPS value
- LPP_
GPS_ SIZE - Size of a GPS packet including channel and data type
- LPP_
GYROMETER - Data type of gyrometer values
- LPP_
GYROMETER_ SIZE - Size of a gyrometer packet including channel and data type
- LPP_
LUMINOSITY - Data type of a luminosity value
- LPP_
LUMINOSITY_ SIZE - Size of a luminosity packet including channel and data type
- LPP_
PERCENTAGE - Data type of a percentage
- LPP_
PERCENTAGE_ SIZE - Size of an percentage packet including channel and data type
- LPP_
POWER - Data type of a power value
- LPP_
POWER_ SIZE - Size of a power packet including channel and data type
- LPP_
PRESENCE - Data type of a presence sensor
- LPP_
PRESENCE_ SIZE - Size of a presence sensor packet including channel and data type
- LPP_
RELATIVE_ HUMIDITY - Data type of a relative humidity value
- LPP_
RELATIVE_ HUMIDITY_ SIZE - Size of a relative humidity packet including channel and data type
- LPP_
SWITCH - Data type of switch value
- LPP_
SWITCH_ SIZE - Size of a switch packet including channel and data type
- LPP_
TEMPERATURE - Data type of a temperature value
- LPP_
TEMPERATURE_ SIZE - Size of a temperature packet including channel and data type
- LPP_
UNIXTIME - Data type of a time (unix timestamp)
- LPP_
UNIXTIME_ SIZE - Size of a unix time packet including channel and data type
- LPP_
VOLTAGE - Data type of a voltage value
- LPP_
VOLTAGE_ SIZE - Size of a voltage packet including channel and data type