Class BaseDevice

Hierarchy (view full)

Constructors

Properties

Accessors

Methods

Constructors

Properties

_id: string
adoptIp?: string
adoptUrl?: string
adoptableWhenUpgraded: boolean
adopted: boolean
anonId: string
architecture: string
boardRevision: number
bytes: number
cfgVersion: string
configNetwork: IConfigNetwork
connectRequestIp: string
connectRequestPort: string
connectedAt: number
connectionNetworkName: EConnectionNetworkName
default?: boolean
deviceId: string
disabled?: boolean
discoveredVia?: string
displayableVersion: string
dot1xPortctrlEnabled: boolean
downlinkTable: IDownlinkTable[]
ethernetTable: IEthernetTable[]
fwCaps: number
gatewayMac?: string
guestKicks?: number
guestNumSta: number
guestToken?: string
guestWLANNumSta?: number
hasEth1?: boolean
hasFan: boolean
hasSpeaker?: boolean
hasTemperature: boolean
hashId: string
hwCaps: number
informIp: string
informUrl: string
internet: boolean
ip: string
kernelVersion: string
knownCfgversion: string
lastSeen: number
lastUplink?: ILastUplink
lcmBrightnessOverride?: boolean
lcmIdleTimeoutOverride?: boolean
ledOverride?: string
ledOverrideColor?: string
ledOverrideColorBrightness?: number
licenseState: string
lldpTable: ILldpTable[]
locating: boolean
mac: string
manufacturerId: number
minInformIntervalSeconds: number
model: string
modelInEOL: boolean
modelInLTS: boolean
modelIncompatible: boolean
name?: string
nextInterval: number
numSta: number
outdoorModeOverride?: string
portTable: IPortTable[]
prevNonBusyState: number
provisionedAt: number
requiredVersion: string
rollupgrade: boolean
rxBytes: number
satisfaction?: number
serial: string
setupId: string
siteId: string
sshSessionTable?: unknown[]
startConnectedMillis: number
startDisconnectedMillis: number
startupTimestamp: number
stat: IStat
switchCaps: ISwitchCaps
sysErrorCaps?: number
sysStats: ISysStats
syslogKey: string
systemStats: ISystemStats
twoPhaseAdopt: boolean
txBytes: number
unsupported: boolean
unsupportedReason: number
upgradable: boolean
uplink: IUplink
uptime: number
userNumSta: number
userWLANNumSta?: number
version: string
wifiCaps?: number
xAesGcm: boolean
xAuthkey: string
xFingerprint: string
xHasSshHostkey: boolean
xSshHostkeyFingerprint?: string
debug: Debugger = ...

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

  • Type Parameters

    • T

    Parameters

    • key: keyof BaseDevice

      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

  • Parameters

    • type: "soft" | "hard" = 'soft'

      two options: 'soft' or 'hard', defaults to soft soft can be used for all devices, requests a plain restart of that device hard is special for PoE switches and besides the restart also requests a power cycle on all PoE capable ports. Keep in mind that a 'hard' reboot does NOT trigger a factory-reset.

    Returns Promise<boolean>

Generated using TypeDoc