Smartage application

Dependencies:   BufferedSerial SX1276GenericLib USBDeviceHT mbed Crypto X_NUCLEO_IKS01A2

Fork of STM32L0_LoRa by Helmut Tschemernjak

Files at this revision

API Documentation at this revision

Comitter:
marcozecchini
Date:
Thu May 17 11:02:34 2018 +0000
Parent:
19:7763501775e5
Child:
21:5d64f9f79190
Commit message:
First working version of Smartage on Discovery-L072z;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
smartage/smartage.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu May 17 09:52:47 2018 +0000
+++ b/main.cpp	Thu May 17 11:02:34 2018 +0000
@@ -22,7 +22,7 @@
      * It waits up to 30 seconds for a USB terminal connections 
      */
     InitSerial(30*1000, &myled); 
-    dprintf("SMARTAGE");
+    print_stuff();
     
     while(1){
         //Ultrasonic measurement
--- a/smartage/smartage.cpp	Thu May 17 09:52:47 2018 +0000
+++ b/smartage/smartage.cpp	Thu May 17 11:02:34 2018 +0000
@@ -259,6 +259,10 @@
         }    
     }
     dprintf("> Finished!");
+    //destroy led led3 e Buffer e radio
+    delete(led);
+    delete(Buffer);
+    delete(Radio);
 }
 
 void OnTxDone(void *radio, void *userThisPtr, void *userData)