@@ -199,6 +199,7 @@ Node Manager comes with a reasonable default configuration. If you want/need to
~~~c
// [10] send the same service message multiple times (default: 1)
voidsetRetries(intvalue);
intgetRetries();
#if BATTERY_MANAGER == 1
// [11] the expected vcc when the batter is fully discharged, used to calculate the percentage (default: 2.7)
voidsetBatteryMin(floatvalue);
...
...
@@ -216,6 +217,8 @@ Node Manager comes with a reasonable default configuration. If you want/need to
voidsetBatteryVoltsPerBit(floatvalue);
// [18] If true, wake up by an interrupt counts as a valid cycle for battery reports otherwise only uninterrupted sleep cycles would contribute (default: true)
voidsetBatteryReportWithInterrupt(boolvalue);
// [2] Send a battery level report to the controller
voidbatteryReport();
#endif
// [3] define the way the node should behave. It can be (0) IDLE (stay awake withtout executing each sensors' loop), (1) SLEEP (go to sleep for the configured interval), (2) WAIT (wait for the configured interval), (3) ALWAYS_ON (stay awake and execute each sensors' loop)
voidsetSleepMode(intvalue);
...
...
@@ -235,6 +238,7 @@ Node Manager comes with a reasonable default configuration. If you want/need to
voidsetInterrupt(intpin,intmode,intpull=-1);
// [20] optionally sleep interval in milliseconds before sending each message to the radio network (default: 0)