Module sigfox pour le projet toiture

Dependents:   projet_embarque1 projet_embarque1

Revision:
2:fd9cadc78239
Parent:
1:11f6ddd8fdbe
Child:
3:835369a16129
--- a/Sigfox.cpp	Mon Sep 30 09:29:59 2019 +0000
+++ b/Sigfox.cpp	Tue Oct 15 12:27:21 2019 +0000
@@ -25,4 +25,12 @@
   */
 void Sigfox::send(s16 temp_air, u16 hum_air, s16 temp_sol, u16 hum_sol, u8 lum, u8 val_r, u8 val_g, u8 val_b) {
     printf("AT$SF=%04x%04x%04x%04x%02x%02x%02x%02x\r", temp_air, hum_air, temp_sol, hum_sol, lum, val_r, val_g, val_b);
+}
+
+void Sigfox::sleep() {
+    printf("AT$P=1\r");  
+}
+
+void Sigfox::wake() {
+    printf("AT$P=0\r");   
 }
\ No newline at end of file