supprimer les warnings

Dependencies:   mbed projet_embarque WakeUp SigfoxToiture DHT DS1820

Files at this revision

API Documentation at this revision

Comitter:
3874313
Date:
Tue Oct 15 15:02:36 2019 +0000
Parent:
4:54e0220b3d83
Commit message:
fin

Changed in this revision

SigfoxToiture.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
diff -r 54e0220b3d83 -r a5a213701cd1 SigfoxToiture.lib
--- a/SigfoxToiture.lib	Tue Oct 15 13:08:34 2019 +0000
+++ b/SigfoxToiture.lib	Tue Oct 15 15:02:36 2019 +0000
@@ -1,1 +1,1 @@
-https://os.mbed.com/users/3874313/code/SigfoxToiture/#fd9cadc78239
+https://os.mbed.com/users/3874313/code/SigfoxToiture/#835369a16129
diff -r 54e0220b3d83 -r a5a213701cd1 main.cpp
--- a/main.cpp	Tue Oct 15 13:08:34 2019 +0000
+++ b/main.cpp	Tue Oct 15 15:02:36 2019 +0000
@@ -25,6 +25,7 @@
 TCS34725 tcs34725(D4,D5); //I2C sda and scl
 AnalogIn humigrove(A1);
 AnalogIn lumiere(A5);
+AnalogIn bat(A4);
 DigitalOut ledTest(LED1);
 DigitalOut mos(D9);
 
@@ -97,7 +98,7 @@
         wait(1);               
         printf("R:%d, G:%d, B:%d\n\r", r, g, b);  
         sigfox.send((s16)(Temp_Air*10),(u16)(Humi_Air*10),(s16)(Temp_Sol*10),(u16)(Humi_Sol*10),
-            (u8)Lumiere,(u8)r,(u8)g,(u8)b);
+            (u8)Lumiere,(u8)r,(u8)g,(u8)b, (u8)((float)bat*255.0f));
         wait(10);
         mos = 1;
         //wait(10);