This repository has been archived by the owner on Jun 8, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ACME probes power switch control
Some ACME probes include a power switch, allowing the user to remotely control the power line monitored by the probe. Add support for detecting this capability and expose a control on the UI for the user to manually control this power switch. IIO exposes a power switch related attribute, so we use it for controlling the power switch. However, this attribute is exposed for all probes, regardless of the existence of a switch on the probe (HE10 probes do not have this switch). So we use an XMLRPC call to query the probe for the availability of this feature (recent ACME FS do propose this service). If not available, the power switch is not exposed to user. We also get a more appropriate device name through XMLRPC and use it to populate the default devicename in the UI. Tested with ACME FS with and without xmlrpc. Signed-off-by: Sebastien Jan <sjan@baylibre.com>
- Loading branch information
Showing
2 changed files
with
74 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters