// after how many sleeping cycles report the battery level to the controller. When reset the battery is always reported (default: 10)
// after how many sleeping cycles report the battery level to the controller. When reset the battery is always reported (default: 10)
voidsetBatteryReportCycles(intvalue);
voidsetBatteryReportCycles(intvalue);
// 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)
voidsetBatteryInternalVcc(boolvalue);
// 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)
voidsetBatteryPin(intvalue);
// if setBatteryInternalVcc() is set to false, the volts per bit ratio used to calculate the battery voltage (default: 0.003363075)
voidsetBatteryVoltsPerBit(floatvalue);
#endif
#endif
#if SLEEP_MANAGER == 1
#if SLEEP_MANAGER == 1
// 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
// 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
@@ -126,6 +126,12 @@ Node Manager comes with a reasonable default configuration. If you want/need to
...
@@ -126,6 +126,12 @@ Node Manager comes with a reasonable default configuration. If you want/need to
voidsetBatteryMax(floatvalue);
voidsetBatteryMax(floatvalue);
// after how many sleeping cycles report the battery level to the controller. When reset the battery is always reported (default: 10)
// after how many sleeping cycles report the battery level to the controller. When reset the battery is always reported (default: 10)
voidsetBatteryReportCycles(intvalue);
voidsetBatteryReportCycles(intvalue);
// 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)
voidsetBatteryInternalVcc(boolvalue);
// 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)
voidsetBatteryPin(intvalue);
// if setBatteryInternalVcc() is set to false, the volts per bit ratio used to calculate the battery voltage (default: 0.003363075)
voidsetBatteryVoltsPerBit(floatvalue);
#endif
#endif
#if SLEEP_MANAGER == 1
#if SLEEP_MANAGER == 1
// 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
// 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