简体   繁体   English

使用 C++ DBus Connman 连接到 WPA2 WiFi 网络

[英]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?是否可以使用 C++ DBus 库通过其 SSID 和密码连接到受保护的网络?

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.我想做一些与非常相似的事情,但最好是在 C++ 中,并且不使用网络管理器包,因为我的 Linux 操作系统有 Connman 包。

Any suitable code examples would be greatly appreciated.任何合适的代码示例将不胜感激。

Managed to do it using the Glib DBus bindings.设法使用 Glib DBus 绑定来做到这一点。 Code (bigger part) is available here .代码(较大部分)可在此处获得。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM