diff --git a/sodaq_one/nsarduino.h b/sodaq_one/nsarduino.h index e820d27..bbaf3d5 100644 --- a/sodaq_one/nsarduino.h +++ b/sodaq_one/nsarduino.h @@ -1,3 +1,7 @@ +#define SWISSCOM 1 +#define TTN 2 +#define LORIOT 3 + /* battery.ino */ uint16_t getBatteryVoltage(); diff --git a/sodaq_one/sodaq_one.ino b/sodaq_one/sodaq_one.ino index 37e7886..889e0e0 100644 --- a/sodaq_one/sodaq_one.ino +++ b/sodaq_one/sodaq_one.ino @@ -3,15 +3,11 @@ #include #include "nsarduino.h" -#define DEBUG 1 - #define debugSerial SerialUSB -/* Which network to use, which device it is (internal only) */ +/* Which network to use, which device it is. Evaluated by internal.ino */ #define LORADEV 1 -#define SWISSCOM 1 -// #define LORIOT 1 -// #define TTN 1 +// #define PROVIDER LORIOT void signal_loop_start() { @@ -96,7 +92,7 @@ void loop() { sendFloatAsString("loudness=", tmp); sendIntAsString( "battery=", getBatteryVoltage()); -// sendFloatAsString("temperature=", getTemperature(TEMP_PIN)); + sendFloatAsString("temperature=", getTemperature(TEMP_PIN)); cnt = 0; } delay(SLEEPTIME);