Reply
Thread Tools
Posts: 6 | Thanked: 1 time | Joined on Jan 2010
#1
Hi all,

I am writing a C application to find the name (SSID) of my active Internet connection on my N900. Using libconic I am already successfull finding the bearer type (WLAN_INFRA), but I can't find the right function to get the name (not ID) of my WLAN SSID.

I found a function (con_ic_iap_get_name) that seems to do the trick but I have problems using it. Anyone ideas?

Thanks.
 
qwerty12's Avatar
Posts: 4,274 | Thanked: 5,358 times | Joined on Sep 2007 @ Looking at y'all and sighing
#2
I used a horrible trick in combination with the DBus-Glib API to get the name on demand: http://slexy.org/view/s2ZioGDRDA

However, nicolai's connectnow-home-widget uses a better trick (look at the connect_now_connection_changed function).
 

The Following User Says Thank You to qwerty12 For This Useful Post:
Posts: 6 | Thanked: 1 time | Joined on Jan 2010
#3
Hi qwerty12,
Thanks for the tip! I found the solution in connectnow-home-widget.c and modifying it for my code it now looks like this:

ConIcIap* iap = con_ic_connection_get_iap(connection, iap_id);
const gchar *iap_name = con_ic_iap_get_name(iap);


iap_name now contains the string with the name of the current SSID (although when using 3G it will shows the name of your provider).

Thanks.
 

The Following User Says Thank You to CheeseMill For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 14:25.