Reading OPC data from device
emilesalem opened this issue · 1 comments
emilesalem commented
from connection.go
//OPCDataSource defines constants for Sources when reading data from OPC:
//Default implementation is OPCCache.
//From the cache
OPCCache int32 = 1
//From the device
OPCDevice int32 = 2
there doesn't seem to be a way to read from device, can you confirm this?
konimarti commented
there doesn't seem to be a way to read from device, can you confirm this?
This is correct. Currently, the read routine has OPCCache hard-coded:
https://github.com/konimarti/opc/blob/master/connection_windows.go#L312
Patches are welcome if you would like to implement a user-specified
parameter for either OPCCache or OPCDevice.