maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   dbus - Connect to any saved connection (https://talk.maemo.org/showthread.php?t=60770)

berlinermaxe 2010-08-20 22:43

dbus - Connect to any saved connection
 
Hi, i need some help please :)
I try to do this:
http://wiki.maemo.org/Phone_control#...ved_connection
but it show me the "change connection UI". I think it is the same like here:
http://wiki.maemo.org/Phone_control#...nnection_UI.29
i would like to connect to a saved wlan without interact
have anyone an idea?

nicolai 2010-08-20 23:18

Re: dbus - Connect to any saved connection
 
Sure you used the right connection IAP?

You can list all saved connection with:

gconftool --all-dirs /system/osso/connectivity/IAP
Example output:
/system/osso/connectivity/IAP/52397e00-74be-477b-9c19-4c66cb9ea3bb
/system/osso/connectivity/IAP/86ca9d79-120d-496f-9d42-e239e5c7f430
/system/osso/connectivity/IAP/c6adc9dc-622a-429c-95ff-a978edfd7848

now you can use one of this IAP names to connect with:
Code:


dbus-send --print-reply --system --type=method_call --dest=com.nokia.icd /com/nokia/icd com.nokia.icd.connect string:"86ca9d79-120d-496f-9d42-e239e5c7f430" uint32:0

Works for me without user interaction.

regards
Nicolai

berlinermaxe 2010-08-20 23:40

Re: dbus - Connect to any saved connection
 
Thank you Nicolai for your answer.
Your right. This works for me too. But I do not wont a specific saved connection. i wont to connect to any saved connection. like in the link i post before.

Code:

dbus-send --system --type=method_call --dest=com.nokia.icd /com/nokia/icd com.nokia.icd.connect string:"[ANY]" uint32:0
anyone try that?
Thanks a lot!

nicolai 2010-08-21 00:02

Re: dbus - Connect to any saved connection
 
The "[ANY]" is only a placeholder for the connection you wished to
connect. You can not use this D-BUS command to
connect to any connection.

There is a gconf setting for auto_connect in
/system/osso/connectivity

Maybe this helps

nicolai 2010-08-21 00:08

Re: dbus - Connect to any saved connection
 
Quote:

Originally Posted by nicolai (Post 793580)
The "[ANY]" is only a placeholder for the connection you wished to
connect. You can not use this D-BUS command to
connect to any connection.

No, you are right the connection "[ANY]" works.

but you have to set auto_connect in gconf,
for example
auto_connect =[*]

regards
Nicolai


All times are GMT. The time now is 03:40.

vBulletin® Version 3.8.8