简体   繁体   English

如何在应用程序中获取Android上设备的热点访问点的BSSID

[英]How do I in an app get the BSSID of my device's hotspot access point on android

When I have an android device configured for and acting as a hotspot ( wifi access point) how can I get the current (possibly generated and unique for each activation of the hotspot) BSSID seen by other devices for the current active hotspot. 当我为某个热点(wifi接入点)配置了一个android设备并充当其热点时,如何获取当前活动热点的其他设备所看到的当前BSSID(可能对于该热点的每次激活都是唯一的)。 Not the SSID but the BSSID. 不是SSID,而是BSSID。

WifiInfo info = mWifiManager.getConnectionInfo();
String BSSID = info.getBSSID();

Hope that helps. 希望能有所帮助。

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

相关问题 如何以编程方式获取设备的SSID和BSSID OF Hotspot - how to get SSID and BSSID OF Hotspot of my device programmatically 如何获取热点的BSSID - how to get BSSID of Hotspot 如何使用移动热点从Android应用(物理设备)向本地服务器发送HTTP消息 - How can I send http messages from android app( physical device) to my local server using mobile hotspot 如何以编程方式在Android中更改Portable Hotspot的SSID? - How do I change the Portable Hotspot's SSID in Android programmatically? Android中的HotSpot(WiFi接入点) - HotSpot (WiFi Access Point) in android 如何在设备上预览我的 android 应用程序? (它通过 usb 连接到我的 Mac。) - How do I preview my android app on a device? (It's connected via usb to my Mac.) 从没有热点的智能手机在 Android 设备上获取 Internet 访问权限 - Get Internet Access on a Android device from a smartphone without hotspot 如何获取连接到热点的设备的Wi-fi Mac地址并将其保存到数据库中? - How can i get the Wi-fi Mac Address of the device that are connected to my hotspot and save it to my database? 如何在Expo上的android中获取BSSID和SSID? - How to get BSSID and SSID in android on Expo? 如何使用android java应用访问我已扎根的android手机的\\ data \\ data文件夹? - How do I access my rooted android phone's \data\data folder using android java app?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM