JavaScript OPC UA client that connects to a server using the OPC UA communication protocol.
The client subscribes to the server and continuously monitors a temperature sensor's value.
Whenever the value changes, the new value is logged to the console and saved to a PostgreSQL database.
The code uses the "node-opcua" and "os" libraries to implement the OPC UA client and obtain the hostname of the device running the code.
iliareshetov / node-opcua-client Goto Github PK
View Code? Open in Web Editor NEWJavaScript OPC UA client has been implemented to subscribe to the server and monitor changes in the temperature sensor value. Upon detecting a change, the new value is saved to a PostgreSQL database