commit 966114ab3e8b5f0b514a0dc72a97dc8f39a7353f
parent 3191c61b263ae60c6b9d665cf4476dd2f1bea0bd
Author: Denis Kenzior <denkenz@gmail.com>
Date: Wed, 23 Oct 2019 17:43:10 -0500
doc: Merge signal-level-agent-api.txt
into station-api.txt where it logically belongs
Diffstat:
2 files changed, 34 insertions(+), 33 deletions(-)
diff --git a/doc/signal-level-agent-api.txt b/doc/signal-level-agent-api.txt
@@ -1,33 +0,0 @@
-SignalLevelAgent hierarchy
-==========================
-
-Service unique name
-Interface net.connman.iwd.SignalLevelAgent
-Object path freely definable
-
-Methods void Release(object device)
-
- This method gets called when the service daemon
- unregisters the agent. An agent can use it to do
- cleanup tasks. There is no need to unregister the
- agent, because when this method gets called it has
- already been unregistered.
-
- string Changed(object device, uint8 level)
-
- This method gets called when the signal strength
- measurement for the device's connected network
- changes enough to go from one level to another out
- of the N ranges defined by the array of (N-1)
- threshold values passed to
- net.connman.iwd.Device.RegisterSignalLevelAgent
- (see device-api.txt.) The level parameter is in
- the range from 0 to N, 0 being the strongest
- signal or above the first threshold value in the
- array, and N being the weakest and below the
- last threshold value. For example if
- RegisterSignalLevelAgent was called with the
- array [-40, -50, -60], the 'level' parameter of
- 0 would mean signal is received at -40 or more dBm
- and 3 would mean below -60 dBm and might correspond
- to 1 out of 4 bars on a UI signal meter.
diff --git a/doc/station-api.txt b/doc/station-api.txt
@@ -154,3 +154,37 @@ Properties string State [readonly]
Reflects whether the device is currently scanning
for networks. net.connman.iwd.Network objects are
updated when this property goes from true to false.
+
+SignalLevelAgent hierarchy
+==========================
+
+Service unique name
+Interface net.connman.iwd.SignalLevelAgent
+Object path freely definable
+
+Methods void Release(object device)
+
+ This method gets called when the service daemon
+ unregisters the agent. An agent can use it to do
+ cleanup tasks. There is no need to unregister the
+ agent, because when this method gets called it has
+ already been unregistered.
+
+ string Changed(object device, uint8 level)
+
+ This method gets called when the signal strength
+ measurement for the device's connected network
+ changes enough to go from one level to another out
+ of the N ranges defined by the array of (N-1)
+ threshold values passed to
+ net.connman.iwd.Device.RegisterSignalLevelAgent
+ (see device-api.txt.) The level parameter is in
+ the range from 0 to N, 0 being the strongest
+ signal or above the first threshold value in the
+ array, and N being the weakest and below the
+ last threshold value. For example if
+ RegisterSignalLevelAgent was called with the
+ array [-40, -50, -60], the 'level' parameter of
+ 0 would mean signal is received at -40 or more dBm
+ and 3 would mean below -60 dBm and might correspond
+ to 1 out of 4 bars on a UI signal meter.