File

protocol-opcua/opcua-servers.component.ts

Implements

OnInit

Metadata

Index

Properties
Methods

Constructor

constructor(opcuaService: OpcuaService, alertService: AlertService, translateService: TranslateService, context: ContextRouteComponent)
Parameters :
Name Type Optional
opcuaService OpcuaService No
alertService AlertService No
translateService TranslateService No
context ContextRouteComponent No

Methods

addServer
addServer()
Returns : void
Async getKeystore
getKeystore(binaryId: string)
Parameters :
Name Type Optional
binaryId string No
Returns : unknown
localServerObjectExist
localServerObjectExist()
Returns : boolean
Async ngOnInit
ngOnInit()
Returns : any
onCanceled
onCanceled(server: OpcuaServer)
Parameters :
Name Type Optional
server OpcuaServer No
Returns : void
Async onPresent
onPresent(server: OpcuaServer)
Parameters :
Name Type Optional
server OpcuaServer No
Returns : any
onRemoved
onRemoved(server: OpcuaServer)
Parameters :
Name Type Optional
server OpcuaServer No
Returns : void
onSaved
onSaved(server: OpcuaServer)
Parameters :
Name Type Optional
server OpcuaServer No
Returns : void
reloadTabs
reloadTabs()
Returns : void

Properties

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>

results matching ""

    No results matching ""