very-dumb/conception/th_manageCamera.txt

19 lines
333 B
Text

@startuml
skinparam monochrome true
start
while ()
:startCamera?;
:bool success = camera.start();
if (success) then (false)
:msg = new Message(MESSAGE_ANSWER_NACK);
:messageToMonitor!msg;
else (true)
:shouldSendImage = true;
:stopCamera?;
:shouldSendImage = false;
:camera.Stop();
endif;
end while;
stop
@enduml