Search code examples
c++dbusconnman

Connect to the WPA2 WiFi network using C++ DBus Connman


Is it possible to connect to the protected network by its's SSID and password using C++ DBus library?

I could not find any similar code examples over the internet. I want to do something very similar to this, but preferably in C++, and without using the Network manager package because my Linux OS has the Connman package.

Any suitable code examples would be greatly appreciated.


Solution

  • Managed to do it using the Glib DBus bindings. Code (bigger part) is available here.