protocol-opcua/opcua-servers.component.ts
OnInit
selector | opcua-servers |
templateUrl | ./opcua-servers.component.html |
Properties |
Methods |
|
constructor(opcuaService: OpcuaService, alertService: AlertService, translateService: TranslateService, context: ContextRouteComponent)
|
|||||||||||||||
Parameters :
|
addServer |
addServer()
|
Returns :
void
|
Async getKeystore | ||||||
getKeystore(binaryId: string)
|
||||||
Parameters :
Returns :
unknown
|
localServerObjectExist |
localServerObjectExist()
|
Returns :
boolean
|
Async ngOnInit |
ngOnInit()
|
Returns :
any
|
onCanceled | ||||||
onCanceled(server: OpcuaServer)
|
||||||
Parameters :
Returns :
void
|
Async onPresent | ||||||
onPresent(server: OpcuaServer)
|
||||||
Parameters :
Returns :
any
|
onRemoved | ||||||
onRemoved(server: OpcuaServer)
|
||||||
Parameters :
Returns :
void
|
onSaved | ||||||
onSaved(server: OpcuaServer)
|
||||||
Parameters :
Returns :
void
|
reloadTabs |
reloadTabs()
|
Returns :
void
|
active |
Default value : false
|
initialServerObject |
Type : OpcuaServer
|
Default value : {
id: '',
name: 'New Server',
config: {
securityMode: 'NONE',
keystorePass: null,
keystoreBinaryId: null,
keystoreFilename: '',
certificatePass: null,
serverUrl: '',
userName: '',
userPassword: '',
rescanCron: null,
timeout: null,
autoReconnect: true,
statusCheckInterval: null,
valid: true
},
quickInfo: {
padlock: 'unlock',
padlockMsg: ''
},
active: true
}
|
server |
Type : OpcuaServer
|
serverObjectList |
Type : OpcuaServer[]
|
Default value : []
|
<div class="card content-fullpage split-view--5-7">
<div class="card-header grid__col--fullspan separator">
<div class="h4 card-title">OPC UA servers</div>
<button
class="btn-help"
type="button"
[attr.aria-label]="'Help' | translate"
popover="{{
'Below you can configure one or more OPC UA servers. The OPC UA agent will connect to these servers if they are enabled and the connection state is set to connected.'
| translate
}}"
placement="right"
triggers="focus"
></button>
</div>
<div class="inner-scroll split-view__list">
<div class="bg-level-1 flex-grow">
<div class="c8y-nav-stacked">
<opcua-server-list
[serverList]="serverObjectList"
(present)="onPresent($event)"
></opcua-server-list>
</div>
</div>
<div class="card-footer separator sticky-bottom">
<button
class="btn btn-default"
title="{{ 'Add server' | translate }}"
type="button"
[disabled]="localServerObjectExist()"
(click)="addServer()"
>
<i [c8yIcon]="'plus-circle'"></i>
{{ 'Add server' | translate }}
</button>
</div>
</div>
<opcua-server-config
class="inner-scroll split-view__detail"
[ngClass]="{ 'split-view__detail--selected': server }"
(canceled)="onCanceled($event)"
(removed)="onRemoved($event)"
(saved)="onSaved($event)"
[server]="server"
></opcua-server-config>
</div>