You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: NodeManagerTemplate/NodeManager.h
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -595,6 +595,12 @@ class NodeManager {
595
595
voidsetBatteryMax(float value);
596
596
// after how many sleeping cycles report the battery level to the controller. When reset the battery is always reported (default: 10)
597
597
voidsetBatteryReportCycles(int value);
598
+
// if true, the battery level will be evaluated by measuring the internal vcc without the need to connect any pin, if false the voltage divider methon will be used (default: true)
599
+
voidsetBatteryInternalVcc(bool value);
600
+
// if setBatteryInternalVcc() is set to false, the analog pin to which the battery's vcc is attached (https://www.mysensors.org/build/battery) (default: -1)
601
+
voidsetBatteryPin(int value);
602
+
// if setBatteryInternalVcc() is set to false, the volts per bit ratio used to calculate the battery voltage (default: 0.003363075)
603
+
voidsetBatteryVoltsPerBit(float value);
598
604
#endif
599
605
#if SLEEP_MANAGER == 1
600
606
// define if the board has to sleep every time entering loop (default: IDLE). It can be IDLE (no sleep), SLEEP (sleep at every cycle), WAIT (wait at every cycle
Copy file name to clipboardExpand all lines: README.md
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -126,6 +126,12 @@ Node Manager comes with a reasonable default configuration. If you want/need to
126
126
void setBatteryMax(float value);
127
127
// after how many sleeping cycles report the battery level to the controller. When reset the battery is always reported (default: 10)
128
128
void setBatteryReportCycles(int value);
129
+
// if true, the battery level will be evaluated by measuring the internal vcc without the need to connect any pin, if false the voltage divider methon will be used (default: true)
130
+
void setBatteryInternalVcc(bool value);
131
+
// if setBatteryInternalVcc() is set to false, the analog pin to which the battery's vcc is attached (https://www.mysensors.org/build/battery) (default: -1)
132
+
void setBatteryPin(int value);
133
+
// if setBatteryInternalVcc() is set to false, the volts per bit ratio used to calculate the battery voltage (default: 0.003363075)
134
+
void setBatteryVoltsPerBit(float value);
129
135
#endif
130
136
#if SLEEP_MANAGER == 1
131
137
// define if the board has to sleep every time entering loop (default: IDLE). It can be IDLE (no sleep), SLEEP (sleep at every cycle), WAIT (wait at every cycle
0 commit comments