Member values
Member name | Data type | Description |
---|---|---|
mode | uint32 | Operational mode of the sensor |
threshold_a | float32 | Sensitivity of the sensor A (0-100%). |
threshold_b | float32 | Sensitivity of the sensor B (0-100%). |
Member functions
Function name | Return type | Input type | Description |
---|---|---|---|
mode() const | uint32 | void | Returns the current value of mode. If the mode is not set, returns 0. |
set_mode() | void | uint32 | Sets the value of mode. After calling this, mode() will return value. |
clear_mode() | void | void | Clears the value of mode. After calling this, mode() will return the empty string/empty bytes. |
threshold_a() | float32 | void | Returns the current value of threshold_a. If the threshold_a is not set, returns 0. |
set_threshold_a() | void | float32 | Sets the value of threshold_a. After calling this, threshold_a() will return value. |
clear_threshold_a() | void | void | Clears the value of threshold_a. After calling this, threshold_a() will return 0. |
threshold_b() | float32 | void | Returns the current value of threshold_b. If the threshold_b is not set, returns 0. |
set_threshold_b() | void | float32 | Sets the value of threshold_b. After calling this, threshold_b() will return value. |
clear_threshold_b() | void | void | Clears the value of threshold_b. After calling this, threshold_b() will return 0. |
Parent topic: DeviceConfig (C++)