mirror of
https://github.com/timmbogner/Farm-Data-Relay-System
synced 2024-11-08 13:10:29 +00:00
cosmetic
This commit is contained in:
parent
9f74426f0b
commit
e89ac94427
@ -14,22 +14,30 @@ float data2;
|
||||
|
||||
|
||||
|
||||
void ctrl_1_cb(DataReading* theData){DBG("C1");}
|
||||
void ctrl_2_cb(DataReading* theData){DBG("C2");}
|
||||
void ctrl_3_cb(DataReading* theData){DBG("C3");}
|
||||
void ctrl_4_cb(DataReading* theData){DBG("C4");}
|
||||
void ctrl_1_cb(DataReading* theData) {
|
||||
DBG("Controller1");
|
||||
}
|
||||
void ctrl_2_cb(DataReading* theData) {
|
||||
DBG("Controller2");
|
||||
}
|
||||
void ctrl_3_cb(DataReading* theData) {
|
||||
DBG("Controller3");
|
||||
}
|
||||
void ctrl_4_cb(DataReading* theData) {
|
||||
DBG("Controller4");
|
||||
}
|
||||
|
||||
void setup() {
|
||||
beginFDRS();
|
||||
addFDRS(1000);
|
||||
}
|
||||
void loop() {
|
||||
// data1 = readHum();
|
||||
// loadFDRS(data1, HUMIDITY_T);
|
||||
// data2 = readTemp();
|
||||
// loadFDRS(data2, TEMP_T);
|
||||
// sendFDRS();
|
||||
// sleepFDRS(10); //Sleep time in seconds
|
||||
// data1 = readHum();
|
||||
// loadFDRS(data1, HUMIDITY_T);
|
||||
// data2 = readTemp();
|
||||
// loadFDRS(data2, TEMP_T);
|
||||
// sendFDRS();
|
||||
// sleepFDRS(10); //Sleep time in seconds
|
||||
}
|
||||
|
||||
float readTemp() {
|
||||
@ -37,5 +45,5 @@ float readTemp() {
|
||||
}
|
||||
|
||||
float readHum() {
|
||||
return random(0,100);
|
||||
return random(0, 100);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user