Class WifiDevice

Hierarchy

  • WifiDevice

Methods

  • Initializes a new WifiDevice You should use networkManager.wifiDevice() unless you know what you're doing.

    Returns

    Promise of a WifiDevice

    Parameters

    • bus: DBusConnection

      An instance of a DBus connection

    • devicePath: string

      The path of the wifi device DBus object

    Returns Promise<WifiDevice>

  • Returns void

  • Returns void

  • Activates a connection based on a connection profile path

    Parameters

    • connectionProfilePath: string

      The path to the connection profile to activate

    Returns Promise<string>

  • Ask the wifi device to start scanning. Scanning is complete when the WifiDevice's LastScan property is updated

    Returns Promise<void>

Properties

_accessPoints: AccessPointMap
_accessPointsSubject: BehaviorSubject<AccessPointMap>
_bus: DBusConnection
_devicePath: string
_propertiesInterface: DBusInterface<AnyInterfaceMethod>
_propertiesSubject: BehaviorSubject<WifiDeviceProperties>
_wifiDeviceInterface: DBusInterface<AnyInterfaceMethod>
accessPoints$: Observable<AccessPointMap>

Continuously updated map of access points Structured as a map where the key is the path of the access point and the value is the access point data. The Access Point path can be compared against the ActiveAccessPoint value of WifiDevice properties to determine which Access Point is connected

properties$: Observable<WifiDeviceProperties>

Continuously updated wifi device properties

Accessors

  • get accessPoints(): AccessPointMap
  • Latest found access points as a one-time value

    Returns AccessPointMap

  • get properties(): any
  • Latest wifi device properties as a one-time value

    Returns any

Constructors

  • Parameters

    • bus: DBusConnection
    • devicePath: string
    • wifiDeviceInterface: DBusInterface<AnyInterfaceMethod>
    • propertiesInterface: DBusInterface<AnyInterfaceMethod>
    • initialProperties: any
    • initialAccessPoints: AccessPointMap

    Returns WifiDevice

Generated using TypeDoc