Class Clients

Hierarchy (view full)

Constructors

Accessors

Methods

  • Parameters

    • Optional minVersion: string

      the minimal semver version for this object

    • Optional unifiOs: boolean

      need to be unifiOs ? or Unifi Controller ? if no need, pass undefined

    • parameterName: string = ''

      a name for the parameter

    Returns void

  • get a Client by mac call /stat/sta/:mac ( seems to return same as /stat/user/:mac )

    Parameters

    • mac: string

      the macAddress

    Returns Promise<undefined | Client>

  • Use this function to list clients

    example to get all blocked user in the last 10 hours

    list({
    type: 'blocked',
    conn: 'all',
    within: 10
    });

    example to get all user from the last 2 hours

    list({
    type: 'all',
    conn: 'all',
    within: 2
    });

    Parameters

    Returns Promise<Client[]>

  • Type Parameters

    • T

    Parameters

    • key: keyof Clients

      the key object that need to be only supported on some versions

    • Optional value: T

      the value store in this object

    • Optional minVersion: string

      the minimal semver version for this object

    • Optional unifiOs: boolean

      need to be unifiOs ? or Unifi Controller ? if no need, pass undefined

    • allowUndefined: boolean = false

      to undefined check ?

    Returns boolean

Generated using TypeDoc