forked from sensiasoft/sensorhub
-
Notifications
You must be signed in to change notification settings - Fork 24
Module Lifecycle
Alex Robin edited this page Dec 21, 2016
·
2 revisions
OSH modules
 --> "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;
)