Smart network selection
This commit is contained in:
parent
e25389db0d
commit
598619f00c
2 changed files with 7 additions and 7 deletions
|
@ -1,3 +1,7 @@
|
|||
#define SWISSCOM 1
|
||||
#define TTN 2
|
||||
#define LORIOT 3
|
||||
|
||||
|
||||
/* battery.ino */
|
||||
uint16_t getBatteryVoltage();
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue