Globals / "src/controller/model/device" / Device
-
Entity
↳ Device
- applicationVersion
- dateCode
- endpoints
- hardwareVersion
- ieeeAddr
- interviewCompleted
- interviewing
- lastSeen
- linkquality
- manufacturerID
- manufacturerName
- modelID
- networkAddress
- powerSource
- softwareBuildID
- stackVersion
- type
- zclVersion
- createEndpoint
- getEndpoint
- getEndpointByDeviceType
- interview
- lqi
- onZclData
- ping
- removeFromDatabase
- removeFromNetwork
- routingTable
- save
- updateLastSeen
- all
- byIeeeAddr
- byNetworkAddress
- byType
- create
- injectAdapter
- injectDatabase
• get applicationVersion(): number
Defined in src/controller/model/device.ts:54
Returns: number
• set applicationVersion(applicationVersion
: number): void
Defined in src/controller/model/device.ts:55
Name | Type |
---|---|
applicationVersion |
number |
Returns: void
• get dateCode(): string
Defined in src/controller/model/device.ts:63
Returns: string
• set dateCode(dateCode
: string): void
Defined in src/controller/model/device.ts:64
Name | Type |
---|---|
dateCode |
string |
Returns: void
• get endpoints(): Endpoint[]
Defined in src/controller/model/device.ts:56
Returns: Endpoint[]
• get hardwareVersion(): number
Defined in src/controller/model/device.ts:66
Returns: number
• set hardwareVersion(hardwareVersion
: number): void
Defined in src/controller/model/device.ts:65
Name | Type |
---|---|
hardwareVersion |
number |
Returns: void
• get ieeeAddr(): string
Defined in src/controller/model/device.ts:52
Returns: string
• set ieeeAddr(ieeeAddr
: string): void
Defined in src/controller/model/device.ts:53
Name | Type |
---|---|
ieeeAddr |
string |
Returns: void
• get interviewCompleted(): boolean
Defined in src/controller/model/device.ts:57
Returns: boolean
• get interviewing(): boolean
Defined in src/controller/model/device.ts:58
Returns: boolean
• get lastSeen(): number
Defined in src/controller/model/device.ts:59
Returns: number
• get linkquality(): number
Defined in src/controller/model/device.ts:88
Returns: number
• set linkquality(linkquality
: number): void
Defined in src/controller/model/device.ts:89
Name | Type |
---|---|
linkquality |
number |
Returns: void
• get manufacturerID(): number
Defined in src/controller/model/device.ts:60
Returns: number
• get manufacturerName(): string
Defined in src/controller/model/device.ts:67
Returns: string
• set manufacturerName(manufacturerName
: string): void
Defined in src/controller/model/device.ts:68
Name | Type |
---|---|
manufacturerName |
string |
Returns: void
• get modelID(): string
Defined in src/controller/model/device.ts:70
Returns: string
• set modelID(modelID
: string): void
Defined in src/controller/model/device.ts:69
Name | Type |
---|---|
modelID |
string |
Returns: void
• get networkAddress(): number
Defined in src/controller/model/device.ts:71
Returns: number
• set networkAddress(networkAddress
: number): void
Defined in src/controller/model/device.ts:72
Name | Type |
---|---|
networkAddress |
number |
Returns: void
• get powerSource(): string
Defined in src/controller/model/device.ts:78
Returns: string
• set powerSource(powerSource
: string): void
Defined in src/controller/model/device.ts:79
Name | Type |
---|---|
powerSource |
string |
Returns: void
• get softwareBuildID(): string
Defined in src/controller/model/device.ts:82
Returns: string
• set softwareBuildID(softwareBuildID
: string): void
Defined in src/controller/model/device.ts:83
Name | Type |
---|---|
softwareBuildID |
string |
Returns: void
• get stackVersion(): number
Defined in src/controller/model/device.ts:84
Returns: number
• set stackVersion(stackVersion
: number): void
Defined in src/controller/model/device.ts:85
Name | Type |
---|---|
stackVersion |
number |
Returns: void
• get type(): DeviceType
Defined in src/controller/model/device.ts:62
Returns: DeviceType
• set type(type
: DeviceType): void
Defined in src/controller/model/device.ts:61
Name | Type |
---|---|
type |
DeviceType |
Returns: void
• get zclVersion(): number
Defined in src/controller/model/device.ts:86
Returns: number
• set zclVersion(zclVersion
: number): void
Defined in src/controller/model/device.ts:87
Name | Type |
---|---|
zclVersion |
number |
Returns: void
▸ createEndpoint(ID
: number): Promise<Endpoint>
Defined in src/controller/model/device.ts:142
Name | Type |
---|---|
ID |
number |
Returns: Promise<Endpoint>
▸ getEndpoint(ID
: number): Endpoint
Defined in src/controller/model/device.ts:153
Name | Type |
---|---|
ID |
number |
Returns: Endpoint
▸ getEndpointByDeviceType(deviceType
: string): Endpoint
Defined in src/controller/model/device.ts:158
Name | Type |
---|---|
deviceType |
string |
Returns: Endpoint
▸ interview(): Promise<void>
Defined in src/controller/model/device.ts:331
Returns: Promise<void>
▸ lqi(): Promise<LQI>
Defined in src/controller/model/device.ts:554
Returns: Promise<LQI>
▸ onZclData(dataPayload
: ZclDataPayload, endpoint
: Endpoint): Promise<void>
Defined in src/controller/model/device.ts:167
Name | Type |
---|---|
dataPayload |
ZclDataPayload |
endpoint |
Endpoint |
Returns: Promise<void>
▸ ping(): Promise<void>
Defined in src/controller/model/device.ts:562
Returns: Promise<void>
▸ removeFromDatabase(): Promise<void>
Defined in src/controller/model/device.ts:540
Returns: Promise<void>
▸ removeFromNetwork(): Promise<void>
Defined in src/controller/model/device.ts:535
Returns: Promise<void>
▸ routingTable(): Promise<RoutingTable>
Defined in src/controller/model/device.ts:558
Returns: Promise<RoutingTable>
▸ save(): void
Defined in src/controller/model/device.ts:261
Returns: void
▸ updateLastSeen(): void
Defined in src/controller/model/device.ts:163
Returns: void
▸ Static
all(): Device[]
Defined in src/controller/model/device.ts:291
Returns: Device[]
▸ Static
byIeeeAddr(ieeeAddr
: string): Device
Defined in src/controller/model/device.ts:276
Name | Type |
---|---|
ieeeAddr |
string |
Returns: Device
▸ Static
byNetworkAddress(networkAddress
: number): Device
Defined in src/controller/model/device.ts:281
Name | Type |
---|---|
networkAddress |
number |
Returns: Device
▸ Static
byType(type
: DeviceType): Device[]
Defined in src/controller/model/device.ts:286
Name | Type |
---|---|
type |
DeviceType |
Returns: Device[]
▸ Static
create(type
: DeviceType, ieeeAddr
: string, networkAddress
: number, manufacturerID
: number, manufacturerName
: string, powerSource
: string, modelID
: string, interviewCompleted
: boolean, endpoints
: { ID: number ; deviceID: number ; inputClusters: number[] ; outputClusters: number[] ; profileID: number }[]): Device
Defined in src/controller/model/device.ts:296
Name | Type |
---|---|
type |
DeviceType |
ieeeAddr |
string |
networkAddress |
number |
manufacturerID |
number |
manufacturerName |
string |
powerSource |
string |
modelID |
string |
interviewCompleted |
boolean |
endpoints |
{ ID: number ; deviceID: number ; inputClusters: number[] ; outputClusters: number[] ; profileID: number }[] |
Returns: Device
▸ Static
injectAdapter(adapter
: Adapter): void
Inherited from Group.injectAdapter
Defined in src/controller/model/entity.ts:12
Name | Type |
---|---|
adapter |
Adapter |
Returns: void
▸ Static
injectDatabase(database
: Database): void
Inherited from Group.injectDatabase
Defined in src/controller/model/entity.ts:8
Name | Type |
---|---|
database |
Database |
Returns: void
▪ Static
Readonly
ReportablePropertiesMapping: object
Defined in src/controller/model/device.ts:97
Name | Type | Value |
---|---|---|
appVersion |
object | { key: "applicationVersion" = "applicationVersion"; set: (v: number, d: Device) => void } |
dateCode |
object | { key: "dateCode" = "dateCode"; set: (v: string, d: Device) => void } |
hwVersion |
object | { key: "hardwareVersion" = "hardwareVersion"; set: (v: number, d: Device) => void } |
manufacturerName |
object | { key: "manufacturerName" = "manufacturerName"; set: (v: string, d: Device) => void } |
modelId |
object | { key: "modelID" = "modelID"; set: (v: string, d: Device) => void } |
powerSource |
object | { key: "powerSource" = "powerSource"; set: (v: string, d: Device) => void } |
stackVersion |
object | { key: "stackVersion" = "stackVersion"; set: (v: number, d: Device) => void } |
swBuildId |
object | { key: "softwareBuildID" = "softwareBuildID"; set: (v: string, d: Device) => void } |
zclVersion |
object | { key: "zclVersion" = "zclVersion"; set: (v: number, d: Device) => void } |