mirror of
https://github.com/timmbogner/Farm-Data-Relay-System
synced 2024-11-10 07:10:42 +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;
|
fdrsData[data_count] = dr;
|
||||||
data_count++;
|
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) {
|
void sleepFDRS(int sleep_time) {
|
||||||
DBG("Sleepytime!");
|
DBG("Sleepytime!");
|
||||||
#ifdef DEEP_SLEEP
|
#ifdef DEEP_SLEEP
|
||||||
|
Loading…
Reference in New Issue
Block a user