get bssid for personal hotspot (AP) on iOS device programmatically

Is there a way to get bssid of ios device access point programmatically, using Objective c or swift?

Replies

You should find some help here (if you did not look at it yet):


https://forums.developer.apple.com/thread/50302


To get SSID and BSSID, of the current interface (on MacOS)


import CoreWLAN

    func currentSSIDs() -> [String] {
        let client = CWWiFiClient.shared()
        return client.interfaces()?.compactMap { interface in
            return interface.ssid()
            } ?? []
    }
   
    func currentBSSIDs() -> [String] {
        let client = CWWiFiClient.shared()
        return client.interfaces()?.compactMap { interface in
            return interface.bssid()
            } ?? []
    }


Should be pretty similar on IOS.