Can't set options via HTTP API v2

The place to discuss development topics.
Discussions on the RICOH THETA API and SDK, image processing of spherical images, other hardware related topics, introduction of useful libraries, etc.

Can't set options via HTTP API v2

Postby Innuendo1975 » 11 May 2016, 16:54

Hi everybody,
I'm using Ricoh Theta S and it's HTTP API v2. I'm trying to set some options using a command setOptions via HTTP. But I'm getting an error
Code: Select all
Any input parameter or option name is recognized, but its value is invalid.

Here is my POST string
Code: Select all
{"name":"camera.setOptions","parameters":{"sessionId":"SID_0008","options":{"exposureProgram":4,"shutterSpeed":"0.002"}}}

Also this array is not working in the same way
Code: Select all
{"name":"camera.setOptions","parameters":{"sessionId":"SID_0008","options":{"exposureProgram":4,"shutterSpeed":"0.002"}}}

What am I doing wrong?
Innuendo1975
 
Posts: 1
Joined: 11 May 2016, 16:41

Re: Can't set options via HTTP API v2

Postby codetricity » 03 Jun 2016, 01:00

shutterSpeed is a number, not a string. Try the value "0.002" with no quotes. It works for me without the quotes.

Image
Image
codetricity
 
Posts: 612
Joined: 31 Jul 2015, 01:56



Return to Development



All times are UTC