Hi community,
I am doing development regarding Ricoh Theta X and the SPOT robot from bosotn dynamics and ran across following problem:
For the robot integration I need to set a static ip for the Ricoh Theta X in client mode, but it doesn´t work to do so over the web API. I tried the python scripts already provided by boston dynamics as well as my own test using the rest client of VS code. My own tests showed me that the parameter “ipAddressAllocation” of the command “camera._setAccessPoint” is always set on “dynamic” although I set it on “static” in my POSt request.
I use following request to access the API:
POST http://192.168.1.1/osc/commands/execute HTTP/1.1
Content-Type: application/json;charset=utf-8
Authorization: Digest THETASSID THETAPassw0rd
{
"name": "camera._setAccessPoint",
"parameters":{
"ssid": "TP-LINK_EB73B6",
"ssidStealth":"false",
"security": "WPA/WPA2 PSK",
"password": "Passw0rd",
"connectionPriority": "1",
"ipAddressAllocation": "static",
"ipAddress": "192.168.80.110",
"subnetMask": "255.255.255.0",
"defaultGateway": "192.168.80.3"
}
}
When sending above request I get following response:
HTTP/1.1 200 OK
User-Agent: Dalvik/2.1.0 (Linux; U; Android 10; RICOH THETA X Build/QKQ1.210402.001)
X-Content-Type-Options: nosniff
Content-Length: 48
Content-Type: application/json; charset=utf-8
{
"name": "camera._setAccessPoint",
"state": "done"
}
But if I send following request to list all registered access points it shows there is no static ip address, it is still dynamic:
HTTP/1.1 200 OK
User-Agent: Dalvik/2.1.0 (Linux; U; Android 10; RICOH THETA X Build/QKQ1.210402.001)
X-Content-Type-Options: nosniff
Content-Length: 206
Content-Type: application/json; charset=utf-8
{
"results": {
"accessPoints": [
{
"connectionPriority": 1,
"ipAddressAllocation": "dynamic",
"security": "WPA/WPA2 PSK",
"ssid": "TP-LINK_EB73B6",
"ssidStealth": false
}
]
},
"name": "camera._listAccessPoints",
"state": "done"
}
So I actually assume that there maybe was an API change but not sure about that. Would be nice if someone could help me.
Thank you and best regards
Christopher