Hello everyone, I'm having trouble doing a curl set configuration using ubus to update my disabled value of wireless interface. Anyone can give me an example? I always receive the status code [2] => Invalid Argument
My steps:
- curl -d '{ "jsonrpc": "2.0", "id": 1, "method": "call", "params": [ "00000000000000000000000000000000", "session", "login", { "username": "root", "password": secret } ] }' url
- curl -s -d '{"jsonrpc":"2.0","id":1,"method":"call","params": [UBUS_SESSION,"uci","get",{"config": "'wireless'", "section": "'radio0'", "option":"'disabled'"}]}' -g url
- curl -s -d '{"jsonrpc":"2.0","id":1,"method":"call","params": [UBUS_SESSION,"uci","set",{"config": "'wireless'", "section": "radio0", "values":{"disabled":1}}]}' -g url
What I'm doing wrong? I cant get a new ubus session and get disabled value but i cant set a new value.. but it had no effect in my device when i do a uci commit
In documentation (https://wiki.openwrt.org/doc/techref/ubus) for uci set we had
uci set { "package": "package",
"section": "sname",
"option": "oname",
"value": "value" }
Anyone you help me?