![]() |
2010-03-25
, 15:36
|
Posts: 540 |
Thanked: 288 times |
Joined on Sep 2009
|
#2
|
The Following User Says Thank You to rambo For This Useful Post: | ||
![]() |
2010-03-26
, 01:37
|
Posts: 2 |
Thanked: 0 times |
Joined on Mar 2010
|
#3
|
Hello,I have a question that how to connect to a specific AP by using Meamo connectivity api ?I am developing a program that
a N810 search a AP and get it's information like name,IAP ID.then send it to another N810 to make it connect to the AP automatically by using the AP information.
I have tried the maemo connectivity api:
con_ic_connection_connect_by_id (ConIcConnection
*connection, const gchar *id, ConIcConnectFlags flags)
it dose work,the program can get connected to a specific AP by
passing it's IAP id to the function,but there exits a problem that is
the IAP id of a AP varies with different device,I have make a experiment: I make two N810s connected to the same AP named BUAA and get its APId,the APId get by a N810 is "7fd56fa5-e26f-46f0-a0fb-179753488aee " and the APId by the other N810 is "bff64462-c1fb-4288-b1f9-955ff527141c".both the two N810 can connect to BUAA via the above api by passing it own APId.
It's really difficult to understand I think, maybe the APId is not the identifier of a AP,what does IAP id refers to in maemo connectivty api?
can I connect to a specific AP by it's name?like BUAA?If it is ,how to do?
I also try the command "dbus-send --type=methode_call --system
dest=com.nokia.icd /com/nokia/icd com.nokia.icd.connect string:BUAA uint32:0" but it doesn't work.
then how can I do?If you konw the answers,please give me a help.
Thank you very much!