light sensor

Dependencies:   X_NUCLEO_IKS01A1 LoRaWAN-lib SX1276Lib mbed

Fork of LoRaWAN-SX1276-Application-Demo by Uttam Bhat

Revision:
6:25f847c99aa2
Parent:
5:f04a6f68e159
--- a/app/Config.h	Fri Sep 08 21:05:04 2017 +0000
+++ b/app/Config.h	Sat Sep 09 00:26:19 2017 +0000
@@ -45,7 +45,7 @@
  * \remark 1 : Confirmed messages enabled. Must receive ACK from network server
            0 : Confirmed messages disabled. 
  */
-#define LORAWAN_CONFIRMED_MSG_ON                    1
+#define LORAWAN_CONFIRMED_MSG_ON                    0
 
 /*!
  * LoRaWAN Adaptive Data Rate
@@ -60,11 +60,20 @@
  */
 #define LORAWAN_DEFAULT_DATARATE                    DR_0
 
+#if( SENSOR == 1 )
+/*!
+ * LoRaWAN application port
+ */
+#define LORAWAN_APP_PORT                            13
+
+#else
 /*!
  * LoRaWAN application port
  */
 #define LORAWAN_APP_PORT                            14
 
+#endif
+
 /*!
  * LoRaWAN User defined Tx Power
  *
@@ -130,7 +139,7 @@
 /*!
  * User application data buffer size
  */
-#define LORAWAN_APP_DATA_SIZE                       2
+#define LORAWAN_APP_DATA_SIZE                       5
 
 #elif ( LORAWAN_APP_PORT == 14 )
 /*====================================================