Skip to content

Commit

Permalink
add Matrikon automation wrapper
Browse files Browse the repository at this point in the history
Fix #36
  • Loading branch information
konimarti committed Oct 19, 2022
1 parent ff6d352 commit ddc9248
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion connection_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,12 @@ func (ao *AutomationObject) Close() {

//NewAutomationObject connects to the COM object based on available wrappers.
func NewAutomationObject() *AutomationObject {
wrappers := []string{"OPC.Automation.1", "Graybox.OPC.DAWrapper.1"}
// TODO: list should not be hard-coded
wrappers := []string{
"OPC.Automation.1",
"Graybox.OPC.DAWrapper.1",
"Matrikon.OPC.Automation.1",
}
var err error
var unknown *ole.IUnknown
for _, wrapper := range wrappers {
Expand Down

0 comments on commit ddc9248

Please sign in to comment.