本文主要簡單介紹一下OPC UA相關的開源庫,這樣大家可以根據需要去選擇使用。關於OPC UA的本質,這篇博客講的挺好,可以看下。
以下排名不分先後。
1. open62541
這個是本人經常使用的庫,支持跨平臺,支持異步,文檔寫的也很好。下面是該庫的信息,
- 官網地址:https://open62541.org/
- Github地址:https://github.com/open62541/open62541
- 語言:C/C++
- License:Mozilla Public License v2.0
- 官方教程:見官網Documentation
- 本人教程:https://blog.csdn.net/whahu1989/category_9236462.html
2. UA-.NETStandard
這是OPCFoundation推出的庫,支持跨平臺,基於.NET,下面是該庫的信息,
- 官網地址:http://opcfoundation.github.io/UA-.NETStandard/
- Github地址:https://github.com/OPCFoundation/UA-.NETStandard
- 語言:C#
- License:對於OPCFoundation成員使用RCL,對於個人使用GPL-2.0
- 官方教程:見官網
3. python-opcua
Python現在已經很火了,opcua+python則更加強大,跨平臺更不在話下,庫接口簡潔易用
- 官網地址:http://freeopcua.github.io/
- Github地址:https://github.com/FreeOpcUa/python-opcua
- 語言:Python (Python2和Python3都支持)
- License:LGPL-3.0
- 教程:見該庫github地址主頁
4. opcua-asyncio
這個庫和python-opcua同出一脈,API接口和python-opcua也基本一致,只是使用python的asyncio進行了重寫,可使程序異步運行,提高效率,這也是符合發展趨勢,
- 官網地址:http://freeopcua.github.io/
- Github地址:https://github.com/FreeOpcUa/opcua-asyncio
- 語言:Python (Python3.6+)
- License:LGPL-3.0
- 教程:見該庫github地址主頁
5. node-opcua
基於JavaScript和NodeJS實現的OPC UA協議棧,跨平臺是必然的,100%異步
- 官網地址:http://node-opcua.github.io/
- Github地址:https://github.com/node-opcua/node-opcua
- 語言:JavaScript / TypeScript
- License:MIT
- 教程:見該庫github地址主頁
6. milo
Eclipse下的開源庫,
- 官網地址:https://projects.eclipse.org/projects/iot.milo
- Github地址:https://github.com/eclipse/milo
- 語言:Java
- License:EPL-2.0
- 教程:見該庫github地址主頁
總結
以上是本人在github上搜索到的star數比較多的OPC UA開源庫,大家可以根據需要選擇適合自己的庫進行使用。