LoRa Ping Pong x Crescenzo

Dependencies:   SX1272Lib mbed

Fork of SX1272PingPong by Semtech

Files at this revision

API Documentation at this revision

Comitter:
franc_unina
Date:
Wed Oct 18 08:29:01 2017 +0000
Parent:
14:ab6eecd44b7a
Commit message:
prova

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r ab6eecd44b7a -r 8cf04e35193a main.cpp
--- a/main.cpp	Mon Apr 24 09:29:13 2017 +0000
+++ b/main.cpp	Wed Oct 18 08:29:01 2017 +0000
@@ -183,7 +183,7 @@
                         {
                             Buffer[i] = i - 4;
                         }
-                        wait_ms( 10 );
+                        wait_ms( 1000 );
                         Radio.Send( Buffer, BufferSize );
                     }
                     else if( strncmp( ( const char* )Buffer, ( const char* )PingMsg, 4 ) == 0 )
@@ -198,7 +198,7 @@
                         {
                             Buffer[i] = i - 4;
                         }
-                        wait_ms( 10 );
+                        wait_ms( 1000 );
                         Radio.Send( Buffer, BufferSize );
                     }
                     else // valid reception but neither a PING or a PONG message
@@ -223,7 +223,7 @@
                         {
                             Buffer[i] = i - 4;
                         }
-                        wait_ms( 10 );
+                        wait_ms( 1000 );
                         Radio.Send( Buffer, BufferSize );
                     }
                     else // valid reception but not a PING as expected
@@ -257,7 +257,7 @@
                 {
                     Buffer[i] = i - 4;
                 }
-                wait_ms( 10 );
+                wait_ms( 1000 );
                 Radio.Send( Buffer, BufferSize );
             }
             else
@@ -276,7 +276,7 @@
                 {
                     Buffer[i] = i - 4;
                 }
-                wait_ms( 10 );
+                wait_ms( 1000 );
                 Radio.Send( Buffer, BufferSize );
             }
             else
@@ -287,7 +287,7 @@
                 {
                     Buffer[i] = i - 4;
                 }
-                wait_ms( 10 );
+                wait_ms( 1000 );
                 Radio.Send( Buffer, BufferSize );
             }
             State = LOWPOWER;