SPNetwork

public class SPNetwork : NSObject

Object representing a wireless network

  • SSID (name) of the network

    Declaration

    Swift

    public var ssid: String
  • Signal strength of the network (RSSI)

    Declaration

    Swift

    public var rssi: Int
  • Boolean indicating whether the network is password-protected or not

    Declaration

    Swift

    public var requiresPassword: Bool
  • SPNetwork Initializer

    Declaration

    Swift

    public init(ssid: String, rssi: Int, requiresPassword: Bool)
    Parameters
    ssid

    SSID (name) of the network

    rssi

    Signal strength of the network (RSSI)

    requiresPassword

    Boolean indicating whether the network is password-protected or not