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: README.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -493,6 +493,8 @@ The following methods are available for all the child:
493
493
float getValueFloat();
494
494
double getValueDouble();
495
495
const char* getValueString();
496
+
// check if the value must be sended back to the controller
497
+
bool valueReadyToSend();
496
498
// send the current value to the gateway
497
499
void sendValue(bool force = 0);
498
500
// print the current value on a LCD display
@@ -508,6 +510,8 @@ The following methods are available for all the child:
508
510
void setMaxThreshold(float value);
509
511
// do not report values if too close to the previous one (default: 0)
510
512
void setValueDelta(float value);
513
+
// set when the last value is updated. Possible values are UPDATE_ALWAYS (at every cycle), UPDATE_ON_SEND (only after sending) (default: UPDATE_ON_SEND)
Copy file name to clipboardExpand all lines: nodemanager/Child.h
+5Lines changed: 5 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -73,6 +73,8 @@ class Child {
73
73
floatgetValueFloat();
74
74
doublegetValueDouble();
75
75
constchar* getValueString();
76
+
// check if the value must be sended back to the controller
77
+
boolvalueReadyToSend();
76
78
// send the current value to the gateway
77
79
voidsendValue(bool force = 0);
78
80
// print the current value on a LCD display
@@ -88,6 +90,8 @@ class Child {
88
90
voidsetMaxThreshold(float value);
89
91
// do not report values if too close to the previous one (default: 0)
90
92
voidsetValueDelta(float value);
93
+
// set when the last value is updated. Possible values are UPDATE_ALWAYS (at every cycle), UPDATE_ON_SEND (only after sending) (default: UPDATE_ON_SEND)
0 commit comments