Rishin Amin / Mbed OS Event_driven_GPS_plus_Lora_code_fina_submission

Dependencies:   LoRaWAN-lib-2 SingleFrequencyLora

Fork of Event_driven_GPS_plus_Lora_code_for_tom by Rishin Amin

Files at this revision

API Documentation at this revision

Comitter:
Rishin
Date:
Thu Feb 01 00:19:09 2018 +0000
Parent:
7:5b3d8973255f
Commit message:
for submission

Changed in this revision

app/main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/app/main.cpp	Thu Dec 14 11:23:06 2017 +0000
+++ b/app/main.cpp	Thu Feb 01 00:19:09 2018 +0000
@@ -64,7 +64,7 @@
     pc->putc('c');
     NVIC_SystemReset();
 }
-void printtext(){
+void receiveGPS(){
     //__disable_irq();
     while((incoming != '\n')){// && (GPS_data_ready == false)){
         incoming = gps->getc();
@@ -108,7 +108,7 @@
     //__disable_irq();
     gps->attach(NULL, Serial::RxIrq);
     //LoRaSend_timer.detach();
-    eventQueue.call(printtext);
+    eventQueue.call(receiveGPS);
 }
 
 void createLoRaMessage(){