| | 8 | |
| | 9 | '''Example XML responses:''' |
| | 10 | |
| | 11 | Response to: .../RFSwitch/set_rf?switch=1&rf=2 |
| | 12 | {{{ |
| | 13 | <?xml version="1.0" encoding="UTF-8"?> |
| | 14 | <response status="OK"> |
| | 15 | <action service="rf_switch" name="set_rf"> |
| | 16 | <nodes> |
| | 17 | <node ip="10.3.0.28" return="0"/> |
| | 18 | </nodes> |
| | 19 | </action> |
| | 20 | </response> |
| | 21 | }}} |
| | 22 | |
| | 23 | Response to: .../RFSwitch/status |
| | 24 | {{{ |
| | 25 | <?xml version="1.0" encoding="UTF-8"?> |
| | 26 | <response status="OK"> |
| | 27 | <action service="rf_switch" name="status"> |
| | 28 | <nodes> |
| | 29 | <node ip="10.3.0.28" mac="b8:27:eb:96:84:c8" uptime="2974" num_of_switches="4" switch1="2" switch2="1" switch3="1" switch4="1"/> |
| | 30 | </nodes> |
| | 31 | </action> |
| | 32 | </response> |
| | 33 | |
| | 34 | }}} |