Can you also add support for subscriptions like with opc ua and mqtt?
Something like
PlcProgram.Subscribe
{
"var": "\"MotorSpeed\""
}
MotorSpeed.on("changed", (dataValue: DataValue) => {
console.log(" value has changed : ", dataValue.value.toString());
});
Returning
value has changed : 100
Can you also add support for subscriptions like with opc ua and mqtt?
Something like
Returning
value has changed : 100