Crate cayenne_lpp

Crate cayenne_lpp 

Source
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’’.
CayenneLPPScalar
Single value parsed from a CayenneLPP data structure, invluding the enumeration of its value and it’s channel.

Enums§

CayenneLPPValue
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