Skip to content

Module Lifecycle

Alex Robin edited this page Dec 21, 2016 · 2 revisions

OSH modules

Particularities for Sensor Modules

![Sensor State Diagram](http://g.gravizo.com/g? @startuml; (*) --> "Module loaded"; --> "initializing"; if "need to connect for init" then; -->[yes] "Try to connect to device" as try_connect; if "is device connected?" then; -->[yes] "Read static info from device" as read_device_info; --> "Generate I/O and sensor descriptions" as generate_io; else; -->[no] if "cached info available" then; -->[yes] generate_io; else; -->[no] try_connect; endif; endif; else; -left->[no] generate_io; endif; generate_io --> "initialized"; --> "starting"; --> if "autostart?" then; -->[no] "initialized"; else; -->[yes] "starting";
@enduml; )

Clone this wiki locally