Thanks for the help @codetricity !
I did the following steps, not sure if it correct but it worked for me. I leave it in case someone needed it.
- check connection through
/osc/info
if it returns a response, I initialized a variable describing the state asStartSession
. - it would check the state, if it
StartSession
, it would send a requestcamera.startSession
to/osc/commands/execute
- change the API version to 2.1
- change the variable state as
connected
- take picture
- acquire the last taken picture.
Now if I’d repeat the process, I’d check the variable state to see if it need a new session or skip that and take a picture.
However, i have noticed that the last taken image using the request camera.listFiles
doesn’t return the current taken picture but the last stored picture before. Any help on this matter ?