@@ -199,6 +199,7 @@ Node Manager comes with a reasonable default configuration. If you want/need to
...
@@ -199,6 +199,7 @@ Node Manager comes with a reasonable default configuration. If you want/need to
~~~c
~~~c
// [10] send the same service message multiple times (default: 1)
// [10] send the same service message multiple times (default: 1)
voidsetRetries(intvalue);
voidsetRetries(intvalue);
intgetRetries();
#if BATTERY_MANAGER == 1
#if BATTERY_MANAGER == 1
// [11] the expected vcc when the batter is fully discharged, used to calculate the percentage (default: 2.7)
// [11] the expected vcc when the batter is fully discharged, used to calculate the percentage (default: 2.7)
voidsetBatteryMin(floatvalue);
voidsetBatteryMin(floatvalue);
...
@@ -216,6 +217,8 @@ Node Manager comes with a reasonable default configuration. If you want/need to
...
@@ -216,6 +217,8 @@ Node Manager comes with a reasonable default configuration. If you want/need to
voidsetBatteryVoltsPerBit(floatvalue);
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)
// [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);
voidsetBatteryReportWithInterrupt(boolvalue);
// [2] Send a battery level report to the controller
voidbatteryReport();
#endif
#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)
// [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);
voidsetSleepMode(intvalue);
...
@@ -235,6 +238,7 @@ Node Manager comes with a reasonable default configuration. If you want/need to
...
@@ -235,6 +238,7 @@ Node Manager comes with a reasonable default configuration. If you want/need to
voidsetInterrupt(intpin,intmode,intpull=-1);
voidsetInterrupt(intpin,intmode,intpull=-1);
// [20] optionally sleep interval in milliseconds before sending each message to the radio network (default: 0)
// [20] optionally sleep interval in milliseconds before sending each message to the radio network (default: 0)