there is backup sku sku backup

Dependencies:   driver_mbed_TH02

Files at this revision

API Documentation at this revision

Comitter:
algrs
Date:
Fri Jan 29 09:36:09 2021 +0000
Parent:
59:23cc35ed9008
Commit message:
Oui

Changed in this revision

driver_mbed_TH02.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-lora-radio-drv.lib Show annotated file Show diff for this revision Revisions of this file
mbed_app.json Show annotated file Show diff for this revision Revisions of this file
diff -r 23cc35ed9008 -r 5fe71d45e3cb driver_mbed_TH02.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/driver_mbed_TH02.lib	Fri Jan 29 09:36:09 2021 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/TaylorGy/code/driver_mbed_TH02/#89151affda00
diff -r 23cc35ed9008 -r 5fe71d45e3cb main.cpp
--- a/main.cpp	Thu Nov 28 09:01:59 2019 +0000
+++ b/main.cpp	Fri Jan 29 09:36:09 2021 +0000
@@ -25,6 +25,8 @@
 #include "trace_helper.h"
 #include "lora_radio_helper.h"
 
+#include "driver_mbed_TH02.h"
+
 using namespace events;
 
 // Max payload size can be LORAMAC_PHY_MAXPAYLOAD.
@@ -92,6 +94,10 @@
  */
 int main(void)
 {
+    // variables
+    
+    
+    
     // setup tracing
     setup_trace();
 
@@ -104,7 +110,7 @@
         return -1;
     }
 
-    printf("\r\n Mbed LoRaWANStack initialized \r\n");
+    printf("\r\n Initialisation du LoRaWAN Mbed ! \r\n");
 
     // prepare application callbacks
     callbacks.events = mbed::callback(lora_event_handler);
@@ -153,7 +159,17 @@
     uint16_t packet_len;
     int16_t retcode;
     int32_t sensor_value;
+    
+    
+    float fTemp,fHumid;
 
+    
+      printf("\n\rCapteur de temperature et humidite :\n\r");
+        fTemp=myTH02.ReadTemperature();
+      printf("\r\n   temp=%f",fTemp);
+        fHumid=myTH02.ReadHumidity();
+      printf("\r\n   humid=%f",fHumid);
+    
     if (ds1820.begin()) {
         ds1820.startConversion();
         sensor_value = ds1820.read();
diff -r 23cc35ed9008 -r 5fe71d45e3cb mbed-lora-radio-drv.lib
--- a/mbed-lora-radio-drv.lib	Thu Nov 28 09:01:59 2019 +0000
+++ b/mbed-lora-radio-drv.lib	Fri Jan 29 09:36:09 2021 +0000
@@ -1,1 +1,1 @@
-https://github.com/ARMmbed/mbed-semtech-lora-rf-drivers#6012fa43cf9f2cae46fa9d424fe4051d00e157a2
+https://github.com/ARMmbed/mbed-semtech-lora-rf-drivers/#6012fa43cf9f2cae46fa9d424fe4051d00e157a2
diff -r 23cc35ed9008 -r 5fe71d45e3cb mbed_app.json
--- a/mbed_app.json	Thu Nov 28 09:01:59 2019 +0000
+++ b/mbed_app.json	Fri Jan 29 09:36:09 2021 +0000
@@ -33,9 +33,9 @@
             "lora.over-the-air-activation": true,
             "lora.duty-cycle-on": true,
             "lora.phy": "EU868",
-            "lora.device-eui": "{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }",
-            "lora.application-eui": "{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }",
-            "lora.application-key": "{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }"
+            "lora.device-eui": "{ 0x00, 0xE8, 0xB7, 0x54, 0x9F, 0x08, 0x48, 0xDB }", 
+            "lora.application-eui": "{ 0x70, 0xB3, 0xD5, 0x7E, 0xD0, 0x03, 0xC2, 0x17 }",
+            "lora.application-key": "{ 0x78, 0x53, 0xF3, 0x85, 0x64, 0x3A, 0x09, 0xD3, 0x93, 0x27, 0x02, 0x50, 0xD2, 0xA5, 0xC5, 0x51 }"
         },
 
         "K64F": {