Demo HCI Implementation for WiMOD-LR Devices  V2.0.3
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 //------------------------------------------------------------------------------
23 //------------------------------------------------------------------------------
24 
25 
26 #ifndef ARDUINO_CAYENNE_CAYENNELPP_CONSTANTS_H_
27 #define ARDUINO_CAYENNE_CAYENNELPP_CONSTANTS_H_
28 
29 //------------------------------------------------------------------------------
30 //
31 // Section Includes Files
32 //
33 //------------------------------------------------------------------------------
34 
36 
37 // source: https://mdswp-staging.mydevices.com/cayenne/docs/#lora
38 
39 #define LPP_DIGITAL_INPUT 0 // 1 byte
40 #define LPP_DIGITAL_OUTPUT 1 // 1 byte
41 #define LPP_ANALOG_INPUT 2 // 2 bytes, 0.01 signed
42 #define LPP_ANALOG_OUTPUT 3 // 2 bytes, 0.01 signed
43 #define LPP_LUMINOSITY 101 // 2 bytes, 1 lux unsigned
44 #define LPP_PRESENCE 102 // 1 byte, 1
45 #define LPP_TEMPERATURE 103 // 2 bytes, 0.1°C signed
46 #define LPP_RELATIVE_HUMIDITY 104 // 1 byte, 0.5% unsigned
47 #define LPP_ACCELEROMETER 113 // 2 bytes per axis, 0.001G
48 #define LPP_BAROMETRIC_PRESSURE 115 // 2 bytes 0.1 hPa Unsigned
49 #define LPP_GYROMETER 134 // 2 bytes per axis, 0.01 °/s
50 #define LPP_GPS 136 // 3 byte lon/lat 0.0001 °, 3 bytes alt 0.01m
51 
52 
53 // Data ID + Data Type + Data Size
54 #define LPP_DIGITAL_INPUT_SIZE 3
55 #define LPP_DIGITAL_OUTPUT_SIZE 3
56 #define LPP_ANALOG_INPUT_SIZE 4
57 #define LPP_ANALOG_OUTPUT_SIZE 4
58 #define LPP_LUMINOSITY_SIZE 4
59 #define LPP_PRESENCE_SIZE 3
60 #define LPP_TEMPERATURE_SIZE 4
61 #define LPP_RELATIVE_HUMIDITY_SIZE 3
62 #define LPP_ACCELEROMETER_SIZE 8
63 #define LPP_BAROMETRIC_PRESSURE_SIZE 4
64 #define LPP_GYROMETER_SIZE 8
65 #define LPP_GPS_SIZE 11
66 
68 
69 #endif /* ARDUINO_CAYENNE_CAYENNELPP_CONSTANTS_H_ */