Wireless API for Linux in C or Java

▼魔方 西西 提交于 2019-11-30 07:01:11

With newer kernels the framework for managing wireless cards is called nl80211. It's netlink based, so you can use libnl to issue commands and parse answers. More information:

http://wireless.kernel.org/en/developers/Documentation/nl80211

Currently iw is the command line utility that utilizes nl80211, so you can list available hardware, scan, etc:

http://linuxwireless.org/en/users/Documentation/iw

Its source code is easy to study and reuse in your own project, just check out their git repo.

gfelisberto

No API but you can try: Excecute iwconfig from a java application

You can also try http://kosmosisland.com/island/david/kosmos-island-wireless.php . They have a Java Applet (with source) that monitors the Wireless Link. You can see how they did it.

Gustavo

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!