Thanks, I don't use the python now.  Is there function of activating the
connection to Wifi network if I have already setted the SSID., such as
nm_device_wifi_get_capabilities (device);

I have found 
nm_client_activate_connection<http://projects.gnome.org/NetworkManager/developers/libnm-glib/08/NMClient.html#nm-client-activate-connection>(
NMClient<http://projects.gnome.org/NetworkManager/developers/libnm-glib/08/NMClient.html>*client,

                                                         const char
*service_name,
                                                         const char
*connection_path,
                                                         NMDevice
<http://projects.gnome.org/NetworkManager/developers/libnm-glib/08/NMDevice.html>
*device,
                                                         const char
*specific_object,

NMClientActivateDeviceFn
<http://projects.gnome.org/NetworkManager/developers/libnm-glib/08/NMClient.html#NMClientActivateDeviceFn>
callback,
                                                         gpointer
<http://projects.gnome.org/NetworkManager/developers/libnm-glib/glib/glib-Basic-Types.html#gpointer>
user_data);

But I don't know how to use this function if I knew the SSID, Channel,
username, password.

Thank you very much!


W




On Tue, Mar 30, 2010 at 12:52 PM, Mads Kiilerich <[email protected]> wrote:

> Dan Williams wrote, On 03/30/2010 09:39 PM:
>
>  On Fri, 2010-03-26 at 11:10 +0100, Jirka Klimes wrote:
>>
>>
>>> On Thursday 25 of March 2010 22:37:34 Bluesky_greenleaf wrote:
>>>
>>>
>>>> Thanks, But don't find the some examples in source tree of NM in
>>>> examples
>>>> directory.
>>>>
>>>>
>>>
>>> http://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/examples/python
>>> Actually, there are just 3 examples now.
>>>
>>>
>> I do need to make a settings service example too, yeah.  If anyone has
>> examples to contribute, be they C or python or whatever, lets get them
>> in there.
>>
>>
>
> Feel free to take what you can use from
> http://mail.gnome.org/archives/networkmanager-list/2010-March/msg00111.html
>
> /Mads
> _______________________________________________
> NetworkManager-list mailing list
> [email protected]
> http://mail.gnome.org/mailman/listinfo/networkmanager-list
>
_______________________________________________
networkmanager-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/networkmanager-list

Reply via email to