Which part of WifiInfo can be used to distinguish every unique access point in a big WLAN?

StackOverflow https://stackoverflow.com/questions/22282028

  •  11-06-2023
  •  | 
  •  

문제

Which part of WifiInfo can be used to distinguish every unique access point in a big WLAN? BSSID or MAC address?

도움이 되었습니까?

해결책

BSSID of access point is essential to every device.

You should get a WifiManager instance and then call

wifiMgr.getConnectionInfo().getBSSID()

to retrieve the BSSID as a string, it is just the MAC address of your AP, format like 0C:DE:AD:1F:00:32

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top