Ottawa Bootcamp Publish
Dependencies: SX127x lorawan1v1
Diff: sensorDemoVT100.cpp
- Revision:
- 13:89e36ee10179
- Parent:
- 8:efe6002910df
- Child:
- 14:926581c53117
diff -r 94b7971c7146 -r 89e36ee10179 sensorDemoVT100.cpp --- a/sensorDemoVT100.cpp Thu Oct 11 23:01:12 2018 +0000 +++ b/sensorDemoVT100.cpp Sat Oct 20 00:12:21 2018 +0000 @@ -290,7 +290,7 @@ #define CAYENNE_CH_DOUT 2 #define CAYENNE_CH_AOUT 3 -#define CAYENNE_CH_TEMP 0 +//#define CAYENNE_CH_TEMP 0 #ifndef TARGET_DISCO_L072CZ_LRWAN1 #define CAYENNE_CH_POT 1 #endif /* !TARGET_DISCO_L072CZ_LRWAN1 */ @@ -314,15 +314,15 @@ gAppDataSize = 0; AppData[gAppDataSize++] = c_ch; switch (c_ch) { - case CAYENNE_CH_TEMP: - AppData[gAppDataSize++] = LPP_TEMPERATURE; + //case CAYENNE_CH_TEMP: + //AppData[gAppDataSize++] = LPP_TEMPERATURE; u16 = ain_temp.read_u16() >> 4; R = 4096.0 / u16 - 1.0; R = R0 * R; t = 1.0/(log(R/R0)/B+1/298.15)-273.15; u16 = t * 10; // 0.1C per bit - AppData[gAppDataSize++] = u16 >> 8; - AppData[gAppDataSize++] = u16; + //AppData[gAppDataSize++] = u16 >> 8; + //AppData[gAppDataSize++] = u16; break; #ifndef TARGET_DISCO_L072CZ_LRWAN1 case CAYENNE_CH_POT: @@ -380,7 +380,7 @@ switch( port ) { case LORAWAN_APP_PORT: gAppDataSize = 0; - AppData[gAppDataSize++] = CAYENNE_CH_TEMP; + //AppData[gAppDataSize++] = CAYENNE_CH_TEMP; AppData[gAppDataSize++] = LPP_TEMPERATURE; //vt.SetCursorPos( ROW_END-1, 1 );