@jsh/opcua
Since v8.0.52Client
The OPCUA client.
Usage example
Creation
Constructor | Description |
---|
new Client(options) | Instantiates a opcua client object with an options |
Options
Option | Type | Default | Description |
---|
endpoint | String | "" | server address |
readRetryInterval | Number | 100 | read retry interval in ms. |
messageSecurityMode | MessageSecurityMode | MessageSecurityMode.None | |
Methods
Method | Returns | Description |
---|
close() | | disconnect |
read(ReadOptions option) | ReadResult[] | |
ReadOptions
Option | Type | Default | Description |
---|
nodes | []String | | server address |
maxAge | Number | 100 | read retry interval in ms. |
timestampsToReturn | TimestampToReturn | TimestampToReturn.Neither | |
ReadResult
Properties
Property | Type | Description |
---|
status | Number | |
statusText | String | |
statusCode | String | |
value | any | |
sourceTimestamp | Time | |
sourceTimestamp | Time | |
MessageSecurityMode
Property | Type | Description |
---|
None | | |
Sign | | |
SignAndEncrypt | | |
TimestampToReturn
Property | Type | Description |
---|
Source | | |
Server | | |
Both | | |
Neither | | |
Last updated on