mirror of
https://github.com/timmbogner/Farm-Data-Relay-System
synced 2024-11-08 13:10:29 +00:00
add id argument to loadFDRS()
This commit is contained in:
parent
ae80dd6aa1
commit
7746812264
@ -497,7 +497,16 @@ void loadFDRS(float d, uint8_t t) {
|
||||
fdrsData[data_count] = dr;
|
||||
data_count++;
|
||||
}
|
||||
|
||||
void loadFDRS(float d, uint8_t t, uint16_t id) {
|
||||
DBG("Id: " + String(READING_ID) + " - Type: " + String(t) + " - Data loaded: " + String(d));
|
||||
if (data_count > espnow_size) sendFDRS();
|
||||
DataReading dr;
|
||||
dr.id = id;
|
||||
dr.t = t;
|
||||
dr.d = d;
|
||||
fdrsData[data_count] = dr;
|
||||
data_count++;
|
||||
}
|
||||
void sleepFDRS(int sleep_time) {
|
||||
DBG("Sleepytime!");
|
||||
#ifdef DEEP_SLEEP
|
||||
|
Loading…
Reference in New Issue
Block a user