Version 1 (modified by 8 years ago) ( diff ) | ,
---|
RF Switch
REST API
All valid calls will reply with formatted XML. The first line will be <response status="OK">
for commands that execute correctly, or <response status="ERROR">
if either the parameters passed are invalid of the call failed for some other reason (check /var/log/syslog on the relevant Pi for more information).
REST API Call | Description |
/RFSwitch/set_rf?switch=<int>&rf=<int> | Sets the requested switch (1 to 4) to rf port (1 or 2) |
/RFSwitch/status | Returns status information: total number of switches and the individual switch states (what rf ports they are set to). |
Note:
See TracWiki
for help on using the wiki.