RPC is not working
Hello,
RPC is Enable, user and password i set, but curl command returns nothing:
curl --insecure -X POST -H "Content-type: application/json" -d '{"objectName":"Devices\Sonos\Speakers\Office L","valueName":"Connected"}' https://andy:andy@192.168.1.20/API/RPC/GetValue
What am I doing wrong?
bos installed on windows machine, ver. 4.6.31.
Andrzej




Probably you're sending a value that's not possible... like a boolean, only accepts true or false, not aaa, or whatever...
I've create the same http devices on my bOS, with SetValue. I created two, one to send an ON command (true), and another to send a OFF command (false), and both of them are working.
As I said, I'm using IFTTT everyday, to trigger the sleep scene...
You need to double check what's wrong in your settings...
This is a text object so "aaa" is the correct value.
Anyway thanks for the response, I will double-check my configuration.
Best regards
AS