From 57e2e000d7ad3064097900927a2d35b81fa03de0 Mon Sep 17 00:00:00 2001 From: flavienhaas Date: Mon, 23 Apr 2018 21:24:05 +0200 Subject: [PATCH] creation of a fake station for testing --- LoRaEthernet/LoRaEthernet.ino | 18 +++++++++--------- fakeStation/fakeStation.ino | 9 +++++++++ 2 files changed, 18 insertions(+), 9 deletions(-) create mode 100644 fakeStation/fakeStation.ino diff --git a/LoRaEthernet/LoRaEthernet.ino b/LoRaEthernet/LoRaEthernet.ino index 59d90e6..fd26064 100644 --- a/LoRaEthernet/LoRaEthernet.ino +++ b/LoRaEthernet/LoRaEthernet.ino @@ -32,14 +32,14 @@ void setup(){ Serial.println(Ethernet.localIP()); } -void SerialPrintElapsedTime( boolean espaceFinal=true ){ // to display the elapsed time - unsigned long h,m,s = millis()/1000; - m=s/60; - h=m/60; - s=s-(m*60); - m=m-(h*60); - Serial << ((h<10)?"0":"") << h << ":" << ((m<10)?"0":"") << m << ":" << ((s<10)?"0":"") << s << (espaceFinal?" ":""); -} +//void SerialPrintElapsedTime( boolean espaceFinal=true ){ // to display the elapsed time +// unsigned long h,m,s = millis()/1000; +// m=s/60; +// h=m/60; +// s=s-(m*60); +// m=m-(h*60); +// Serial << ((h<10)?"0":"") << h << ":" << ((m<10)?"0":"") << m << ":" << ((s<10)?"0":"") << s << (espaceFinal?" ":""); +//} void loop() { // LoRa receiver @@ -55,7 +55,7 @@ void loop() { for( int i=0; i