Dependencies:   DS1820 Sigfox_Com mbed

Fork of DS1820_HelloWorld by Erik -

Files at this revision

API Documentation at this revision

Comitter:
Aureb29
Date:
Mon Oct 16 13:04:25 2017 +0000
Parent:
4:01060b5e01b4
Commit message:

Changed in this revision

DS1820.lib Show annotated file Show diff for this revision Revisions of this file
Sigfox_Com.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.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 01060b5e01b4 -r 055a7eab58d6 DS1820.lib
--- a/DS1820.lib	Fri Jan 13 18:30:37 2017 +0000
+++ b/DS1820.lib	Mon Oct 16 13:04:25 2017 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/Sissors/code/DS1820/#c591209285e9
+http://mbed.org/users/Sissors/code/DS1820/#236eb8f8e73a
diff -r 01060b5e01b4 -r 055a7eab58d6 Sigfox_Com.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Sigfox_Com.lib	Mon Oct 16 13:04:25 2017 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/adrien3d/code/Sigfox_Com/#975b82a3cde0
diff -r 01060b5e01b4 -r 055a7eab58d6 main.cpp
--- 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);
     }
diff -r 01060b5e01b4 -r 055a7eab58d6 mbed.bld
--- a/mbed.bld	Fri Jan 13 18:30:37 2017 +0000
+++ b/mbed.bld	Mon Oct 16 13:04:25 2017 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/mbed_official/code/mbed/builds/99b5ccf27215
\ No newline at end of file
+http://mbed.org/users/mbed_official/code/mbed/builds/a330f0fddbec
\ No newline at end of file