Dependencies:   DS1820 Sigfox_Com mbed

Fork of DS1820_HelloWorld by Erik -

Revision:
5:055a7eab58d6
Parent:
3:f483abe4bc57
--- a/main.cpp	Fri Jan 13 18:30:37 2017 +0000
+++ b/main.cpp	Mon Oct 16 13:04:25 2017 +0000
@@ -8,7 +8,9 @@
 #include "DS1820.h"
 
 #define MAX_PROBES      16
- 
+
+Serial sigfox(A7,A2);
+
 DS1820* probe[MAX_PROBES];
  
 int main() {  
@@ -21,11 +23,12 @@
             break;
     }
     
-    printf("Found %d device(s)\r\n\n", num_devices);
+    sigfox.printf("AT$SF=%3.1f\r\n");
+    
     while(1) {
         probe[0]->convertTemperature(true, DS1820::all_devices);         //Start temperature conversion, wait until ready
         for (int i = 0; i<num_devices; i++)
-            printf("Device %d returns %3.1foC\r\n", i, probe[i]->temperature());
+            printf("La temperature du sol est de %3.1f oC\r\n", i, probe[i]->temperature());
         printf("\r\n");
         wait(1);
     }