| Demo HCI Implementation for WiMOD-LR Devices V1.3.1

- Main Page
- Classes
- Files

- File List
- File Members

CayenneLPP_constants.h
Go to the documentation of this file.
1 /*
2 * CayenneLPP_constants.h
3 *
4 * Created on: Feb 10, 2017
5 * Author: FB
6 */
7
8 //------------------------------------------------------------------------------
22 //------------------------------------------------------------------------------
23
24
25 #ifndef ARDUINO_CAYENNE_CAYENNELPP_CONSTANTS_H_
26 #define ARDUINO_CAYENNE_CAYENNELPP_CONSTANTS_H_
27
28 //------------------------------------------------------------------------------
29 //
30 // Section Includes Files
31 //
32 //------------------------------------------------------------------------------
33
34
35 // source: https://mdswp-staging.mydevices.com/cayenne/docs/#lora
36
37 #define LPP_DIGITAL_INPUT 0 // 1 byte
38 #define LPP_DIGITAL_OUTPUT 1 // 1 byte
39 #define LPP_ANALOG_INPUT 2 // 2 bytes, 0.01 signed
40 #define LPP_ANALOG_OUTPUT 3 // 2 bytes, 0.01 signed
41 #define LPP_LUMINOSITY 101 // 2 bytes, 1 lux unsigned
42 #define LPP_PRESENCE 102 // 1 byte, 1
43 #define LPP_TEMPERATURE 103 // 2 bytes, 0.1°C signed
44 #define LPP_RELATIVE_HUMIDITY 104 // 1 byte, 0.5% unsigned
45 #define LPP_ACCELEROMETER 113 // 2 bytes per axis, 0.001G
46 #define LPP_BAROMETRIC_PRESSURE 115 // 2 bytes 0.1 hPa Unsigned
47 #define LPP_GYROMETER 134 // 2 bytes per axis, 0.01 °/s
48 #define LPP_GPS 136 // 3 byte lon/lat 0.0001 °, 3 bytes alt 0.01m
49
50
51 // Data ID + Data Type + Data Size
52 #define LPP_DIGITAL_INPUT_SIZE 3
53 #define LPP_DIGITAL_OUTPUT_SIZE 3
54 #define LPP_ANALOG_INPUT_SIZE 4
55 #define LPP_ANALOG_OUTPUT_SIZE 4
56 #define LPP_LUMINOSITY_SIZE 4
57 #define LPP_PRESENCE_SIZE 3
58 #define LPP_TEMPERATURE_SIZE 4
59 #define LPP_RELATIVE_HUMIDITY_SIZE 3
60 #define LPP_ACCELEROMETER_SIZE 8
61 #define LPP_BAROMETRIC_PRESSURE_SIZE 4
62 #define LPP_GYROMETER_SIZE 8
63 #define LPP_GPS_SIZE 11
64
65
66 #endif /* ARDUINO_CAYENNE_CAYENNELPP_CONSTANTS_H_ */