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
Those sensors requiring a pin to operate would take it as an argument in the constructor.
155
156
NodeManager automatically creates all the child_ids, assigning an incremental counter. If you need to set your own child_id, pass it as the last argument to the constructor
@@ -964,6 +965,16 @@ Each sensor class may expose additional methods.
964
965
void setTemperatureSensor(bool value);
965
966
~~~
966
967
968
+
* SensorMPR121
969
+
~~~c
970
+
// set the passcode length. Passcode will be sent to the controller only after this number of digits have been pressed (default: 4)
971
+
void setPasscodeLength(int value);
972
+
// [101] wait for a valid code for the given amount of seconds. Useful when battery powered (default: 0)
973
+
void setWaitCodeForSeconds(int value);
974
+
// return true if the code was recognized successfully, false otherwise. Useful when a hook function needs to act upon the result
975
+
bool getCodeIsValid();
976
+
~~~
977
+
967
978
### OTA Configuration
968
979
969
980
When `NODEMANAGER_OTA_CONFIGURATION` is set to ON the API presented above can be also called remotely through `SensorConfiguration`, which is automatically added to NodeManager. SensorConfiguration exposes by default child id 200 that can be used to interact with the service by sending `V_CUSTOM` type of messages and commands within the payload. For each `REQ` message, the node will respond with a `SET` message if successful.
0 commit comments