Skip to content

Commit

Permalink
prettify variables
Browse files Browse the repository at this point in the history
  • Loading branch information
cctweaker committed Jun 5, 2020
1 parent 57dfba5 commit 45d4a30
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions ESPsensor/variables.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
boolean SENT = false; // data sent flag
boolean ACK = false; // data sent ok flag

/////////////////////////////////////////////////
// sleep time (message rate)
/////////////////////////////////////////////////
#define SLEEP 1 * 60 * 1000 * 1000 // 1 minute
/////////////////////////////////////////////////

/////////////////////////////////////////////////
// measure your ESP VCC voltage with a good multimeter
// should be around 3.30V
#define MEASURED 3.3
Expand All @@ -11,4 +13,12 @@ boolean ACK = false; // data sent ok flag
// i've seen up to 3.39V reported
#define REPORTED 3.38
#define FACTOR 1024 * MEASURED / REPORTED
// use MQTT to send yourself a reminder to change/recharge batteries when voltage drops below 3.0-2.9V
// use MQTT to send yourself a reminder to change/recharge batteries when voltage drops below 3.0-2.9V
/////////////////////////////////////////////////

/////////////////////////////////////////////////
// flags
/////////////////////////////////////////////////
boolean SENT = false; // data sent flag
boolean ACK = false; // data sent ok flag
/////////////////////////////////////////////////

0 comments on commit 45d4a30

Please sign in to comment.