protocol-opcua/opcua-servers.component.ts
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 |
Type : boolean
|
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">
<h4 class="card-title">OPC UA servers</h4>
<button class="btn-clean m-l-4"
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"
>
<i c8yIcon="question-circle-o" class="text-info "></i>
</button>
</div>
<div class="inner-scroll split-view__list">
<div class="bg-gray-white 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
title="{{ 'Add server' | translate }}"
class="btn btn-default"
[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>