Skip to content

Commit

Permalink
Increased sensor retries before considered offline and fixed PMS sens…
Browse files Browse the repository at this point in the history
…or recovering
  • Loading branch information
epiller committed Dec 13, 2021
1 parent 1ae8571 commit cc9c3eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified Klimerko_Firmware/Klimerko_Firmware.bin
Binary file not shown.
4 changes: 2 additions & 2 deletions Klimerko_Firmware/Klimerko_Firmware.ino
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ unsigned long ledLastUpdate;
// --------------------- SENSORS (GENERAL) ------------------------------------------------
uint8_t dataPublishInterval = 15; // [MINUTES] Default sensor data sending interval
const uint8_t sensorAverageSamples = 10; // Number of samples used to average values from sensors
const int sensorRetriesUntilConsideredOffline = 2;
const int sensorRetriesUntilConsideredOffline = 3;
bool dataPublishFailed = false; // Keeps track if a payload has failed to send so we can retry
unsigned long sensorReadTime, dataPublishTime;

Expand Down Expand Up @@ -710,7 +710,7 @@ String wifiSignal() {

void initPMS() {
pmsSerial.begin(9600);
pmsPower(false);
pmsPower(true);
}

void initBME() {
Expand Down

0 comments on commit cc9c3eb

Please sign in to comment.