Proper steps for working on Theta API v2.1

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.

  1. check connection through /osc/info
    if it returns a response, I initialized a variable describing the state as StartSession.
  2. it would check the state, if it StartSession, it would send a request camera.startSession to /osc/commands/execute
  3. change the API version to 2.1
  4. change the variable state as connected
  5. take picture
  6. 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 ?

1 Like