<span id=":qx" class="p9" tabindex="0">Hi,<br><br>SetProperty method and Powered Property where missing from modem-api.txt<br><br>Question:<br><br>I&#39;m not sure if the &quot;</span><span id=":qx" class="p9" tabindex="0">On success a PropertyChanged signal will be emitted.</span>&quot; message is valid, as the PropertyChanged signal is sent only once when doing for example the following:<br>
<br>$ dbus-send --print-reply --system --dest=org.ofono /atgen0 org.ofono.Modem.SetProperty string:Powered variant:boolean:true<br>method return sender=:1.160 -&gt; dest=:1.227 reply_serial=2<br>$ dbus-send --print-reply --system --dest=org.ofono /atgen0 org.ofono.Modem.SetProperty string:Powered variant:boolean:true<br>
method return sender=:1.160 -&gt; dest=:1.228 reply_serial=2<br><br>If I understood correctly the second method call is also successfull eventhough no PropertyChanged signal is emitted.<br><span id=":qx" class="p9" tabindex="0"><br>
Regards,<br>Marko<br><br>---<br> doc/modem-api.txt |   17 ++++++++++++++++-<br> 1 files changed, 16 insertions(+), 1 deletions(-)<br><br>diff --git a/doc/modem-api.txt b/doc/modem-api.txt<br>index 3058880..06a4ada 100644<br>
--- a/doc/modem-api.txt<br>+++ b/doc/modem-api.txt<br>@@ -12,12 +12,27 @@ Methods             dict GetProperties()<br><br>                        Possible Errors: [service].Error.InvalidArguments<br><br>+               void SetProperty(string property, variant value)<br>
+<br>+                       Changes the value of the specified property. Only<br>+                       properties that are listed as read-write are<br>+                       changeable. On success a PropertyChanged signal<br>
+                       will be emitted.<br>+<br>+                       Possible Errors: [service].Error.InvalidArguments<br>+                                        [service].Error.DoesNotExist<br>+<br> Signals                PropertyChanged(string name, variant value)<br>
<br>                        This signal indicates a changed value of the given<br>                        property.<br><br>-Properties     string Manufacturer [readonly, optional]<br>+Properties     boolean Powered [readwrite]<br>
+<br>+                       Boolean representing the power state of the modem<br>+                       device.<br>+<br>+               string Manufacturer [readonly, optional]<br><br>                        String representing the manufacturer of the modem<br>
                        device.<br>--<br>1.6.0.4<br><br></span>