This is a library that makes writing drivers for network actuation easier. This library is not required, lower level implementations of the same protocol can be used on edge devices without access to python.
- Import this library and your driver library.
from your_driver_lib import mysetpoint, mydo from ceaos.networkactuation import NetworkActuation
- Register the functions for
setpointanddo, specifying bounds and datatypes to check.NA = NetworkActuation() NA.register_setpoint(mysetpoint, dtype=float, rules=[lambda x: x>1.0, lambda x: x<10.0>]) NA.register_do(mydo, dtype=bool)
- Tell the library to listen
NA.listen(port=26462) # Pick any port to listen on