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_IO===; else; -->[no] if "cached info available" then; -->[yes] ===GENERATE_IO===; else; -->[no] try_connect; endif; endif; else; -->[no] ===GENERATE_IO===; endif; --> "Generate I/O and sensor descriptions"; --> "initialized"; --> "starting"; --> if "autostart?" then; -->[no] "initialized"; else; -->[yes] "starting"; endif; --> (); @enduml; )

Clone this wiki locally