spliting the code into different files

Differentiate 4 categories of files:
-gateway file for bridging signal and MQTT
-user config
-sensor files
-actuators files
This commit is contained in:
1technophile committed 2017-04-18 22:42:43 +02:00
1 parent 0bbf882b30
commit a65e5fa595
4 files changed
+140 -13

No files matched your search

+3 -12
View File
@@ -130,17 +130,8 @@ void setup()
lastReconnectAttempt = 0;
//IR init parameters
#ifdef ESP8266
irsend.begin();
#endif
irrecv.enableIRIn(); // Start the receiver
//RF init parameters
mySwitch.enableTransmit(RF_EMITTER_PIN);
mySwitch.setRepeatTransmit(RF_EMITTER_REPEAT);
mySwitch.enableReceive(RF_RECEIVER_PIN);
setupIR();
setupRF();
}
@@ -191,7 +182,7 @@ void loop()
} else { //connected
// MQTT loop
client.loop();
#ifdef ZaddonDHT
#ifdef ZsensorDHT
MeasureTempAndHum(); //Addon to measure the temperature with a DHT
#endif
// Receive loop, if data received by RF433 or IR send it by MQTT