Skip to content
Snippets Groups Projects
Commit 1c438c74 authored by Puissegur Alexis's avatar Puissegur Alexis
Browse files

core

parent ed7d9c8a
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
#define HEADER_LIGHT_ON "LIGHT" #define HEADER_LIGHT_ON "LIGHT"
#define HEADER_SOUND_ON "SOUND" #define HEADER_SOUND_ON "SOUND"
#define REMAINING_TIME 300000 // 5MIN #define REMAINING_TIME 300000 // 5MIN
#define DATASPAN 300000 // 5MIN #define DATASPAN 10000 // 5MIN
#define ALARMSPAN 10000 // 10SEC #define ALARMSPAN 10000 // 10SEC
#define FAb4 740 #define FAb4 740
#define LAb4 932 #define LAb4 932
...@@ -92,7 +92,8 @@ void receiveFromBluetooth() { ...@@ -92,7 +92,8 @@ void receiveFromBluetooth() {
if (bluetooth.dataAvailable()){ if (bluetooth.dataAvailable()){
buffer = bluetooth.receive(); buffer = bluetooth.receive();
} }
monEcran1.printMsg(buffer,0);
if (buffer.startsWith(HEADER_LIGHT_ON)){ if (buffer.startsWith(HEADER_LIGHT_ON)){
dealWithLight(); dealWithLight();
} }
...@@ -129,7 +130,6 @@ void setup() ...@@ -129,7 +130,6 @@ void setup()
humi = 0; humi = 0;
humiTerre = 0; humiTerre = 0;
timeStamp = 0; timeStamp = 0;
ledHasBeenTurnedOn = false; ledHasBeenTurnedOn = false;
alarmHasBeenTurnedOn = false; alarmHasBeenTurnedOn = false;
timePushed = 0; timePushed = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment