Class UAPDevice

Hierarchy (view full)

Constructors

Properties

_id accMeterStats adoptIp? adoptUrl? adoptableWhenUpgraded adopted anonId antennaTable architecture boardRevision bytes bytesD bytesR cfgVersion configNetwork connectRequestIp connectRequestPort connectedAt connectionNetworkName countryCode countrycodeTable default? deviceId disabled? disconnectionReason discoveredVia? displayableVersion dot1xPortctrlEnabled downlinkTable elementPeerMAC ethernetTable fwCaps gatewayMac? guestKicks? guestNumSta guestToken? guestWLANNumSta? hasEth1? hasFan hasSpeaker? hasTemperature hashId hideChWidth hwCaps informIp informUrl internet ip isolated kernelVersion knownCfgversion lastScan lastSeen lastUplink? lcmBrightnessOverride? lcmIdleTimeoutOverride? ledOverride? ledOverrideColor? ledOverrideColorBrightness? licenseState lldpTable locating mac manufacturerId meshv3PeerMAC minInformIntervalSeconds model modelInEOL modelInLTS modelIncompatible name? nextInterval numSta outdoorModeOverride? portStats portTable prevNonBusyState provisionedAt radioTable radioTableStats requiredVersion rollupgrade rxBytes rxBytesD satisfaction? scanRadioTable scanning serial setupId siteId spectrumScanning sshSessionTable? startConnectedMillis startDisconnectedMillis startupTimestamp stat state supportsFingerprintMl switchCaps sysErrorCaps? sysStats syslogKey systemStats twoPhaseAdopt txBytes txBytesD type unsupported unsupportedReason upgradable uplink uplinkTable uptime userNumSta userWLANNumSta? vapTable version vwireEnabled vwireTable vwireVapTable wifiCaps? wlangroupIdNa wlangroupIdNg xAesGcm xAuthkey xFingerprint xHasSshHostkey xSshHostkeyFingerprint? xVwirekey debug type

Accessors

Methods

Constructors

Properties

_id: string
accMeterStats: IAccMeterStats
adoptIp?: string
adoptUrl?: string
adoptableWhenUpgraded: boolean
adopted: boolean
anonId: string
antennaTable: IAntennaTable[]
architecture: string
boardRevision: number
bytes: number
bytesD: number
bytesR: number
cfgVersion: string
configNetwork: IConfigNetwork
connectRequestIp: string
connectRequestPort: string
connectedAt: number
connectionNetworkName: EConnectionNetworkName
countryCode: number
countrycodeTable: unknown[]
default?: boolean
deviceId: string
disabled?: boolean
disconnectionReason: string
discoveredVia?: string
displayableVersion: string
dot1xPortctrlEnabled: boolean
downlinkTable: IDownlinkTable[]
elementPeerMAC: string
ethernetTable: IEthernetTable[]
fwCaps: number
gatewayMac?: string
guestKicks?: number
guestNumSta: number
guestToken?: string
guestWLANNumSta?: number
hasEth1?: boolean
hasFan: boolean
hasSpeaker?: boolean
hasTemperature: boolean
hashId: string
hideChWidth: string
hwCaps: number
informIp: string
informUrl: string
internet: boolean
ip: string
isolated: boolean
kernelVersion: string
knownCfgversion: string
lastScan: number
lastSeen: number
lastUplink?: ILastUplink
lcmBrightnessOverride?: boolean
lcmIdleTimeoutOverride?: boolean
ledOverride?: string
ledOverrideColor?: string
ledOverrideColorBrightness?: number
licenseState: string
lldpTable: ILldpTable[]
locating: boolean
mac: string
manufacturerId: number
meshv3PeerMAC: string
minInformIntervalSeconds: number
model: string
modelInEOL: boolean
modelInLTS: boolean
modelIncompatible: boolean
name?: string
nextInterval: number
numSta: number
outdoorModeOverride?: string
portStats: unknown[]
portTable: IPortTable[]
prevNonBusyState: number
provisionedAt: number
radioTable: IRadioTable[]
radioTableStats: IRadioTableStat[]
requiredVersion: string
rollupgrade: boolean
rxBytes: number
rxBytesD: number
satisfaction?: number
scanRadioTable: unknown[]
scanning: boolean
serial: string
setupId: string
siteId: string
spectrumScanning: boolean
sshSessionTable?: unknown[]
startConnectedMillis: number
startDisconnectedMillis: number
startupTimestamp: number
stat: IStat
supportsFingerprintMl: boolean
switchCaps: ISwitchCaps
sysErrorCaps?: number
sysStats: ISysStats
syslogKey: string
systemStats: ISystemStats
twoPhaseAdopt: boolean
txBytes: number
txBytesD: number
type: EDeviceType = EDeviceType.UAP
unsupported: boolean
unsupportedReason: number
upgradable: boolean
uplink: IUplink
uplinkTable: unknown[]
uptime: number
userNumSta: number
userWLANNumSta?: number
vapTable: IVapTable[]
version: string
vwireEnabled: boolean
vwireTable: unknown[]
vwireVapTable: unknown[]
wifiCaps?: number
wlangroupIdNa: string
wlangroupIdNg: string
xAesGcm: boolean
xAuthkey: string
xFingerprint: string
xHasSshHostkey: boolean
xSshHostkeyFingerprint?: string
xVwirekey: string
debug: Debugger = ...
type: EDeviceType = EDeviceType.UAP

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 UAPDevice

      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