thanks for your time. Please keep me updated if you have news about the
Regarding the status question I have completely missed the state
property of a service element! I were focues on the state property of
the manager. According to the docs:
manager-api.txt -> Properties string State [readonly] ->
values are "offline", "idle", "ready" and
service-api.txt -> Properties string State [readonly] -> Valid
states are "idle", "failure", "*association*",
"ready", "disconnect" and "online".
The State string of the service api is exactly what I'm looking for.
Many thanks for your help
Il 21/10/2016 09:04, Daniel Wagner ha scritto:
On 14.10.2016 19:15, Fabio Emiliani wrote:
> Dear all,
> I'm developing a Qt-based application using libconnman-qt and connman.
> Please consider the following use case:
> - the user starts the connection to a network
> - the connection starts
> - a passphrase is required
> - the user doesn't want to connect anymore
> Actually after the requestConnect() I've got back a
> serviceConnectionStarted() signal, then I receive a
> userInputRequested(QString,QVariantMap) (passphrase request).
> If I try to execute a requestDisconnect() I see in the logs:
> Reply from service.connect(): "Invalid arguments"
> This makes sense, I can't disconnect from a network I'm not connected
> in, the connection is "In progress", connman is still waiting for a
I observed this problem also. So far I just ignored it :) IIRC, ConnMan
is just missing the 'abort' code path. I'll see if I get the time to
look into this when working on the iwd plugin.
> * How can I get the status of the connection procedure (e.g.
> "connecting", "waiting for a passphrase",
Via the D-Bus API? Check the the State property from the manager API.
There is also one for a single service.
/Ph. +39 075 8298 532/
This email and any attachment may contain confidential information. If
you are not the intended recipient you are not authorised to copy or
disclose all or any part of it without the prior written consent of ART SpA.
/ART SpA – Step Forward With US - //www.artgroup-spa.com/logo_ART_firma-1//
/Ph. +39 075 8298 501 – Fax +39 075 8298 525 /
P*Please consider our environment before printing this e-mail***