Smart network selection

This commit is contained in:
Nico Schottelius 2016-11-02 17:57:55 +01:00
parent e25389db0d
commit 598619f00c
2 changed files with 7 additions and 7 deletions

View File

@ -1,3 +1,7 @@
#define SWISSCOM 1
#define TTN 2
#define LORIOT 3
/* battery.ino */
uint16_t getBatteryVoltage();

View File

@ -3,15 +3,11 @@
#include <math.h>
#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);