habitat.sensors.base¶
Basic sensor functions.
These sensors cover simple ASCII representations of numbers and strings.
Functions
ascii_float(config, data) | Parse data to a float. |
ascii_int(config, data) | Parse data to an integer. |
constant(config, data) | Checks that data is equal to config[“expect”], returning None. |
string(data) | Returns data as a string. |