OPC UA Client and Server
This documentation covers Real Time Logic’s Lua OPC UA stack, including the address-space model, Client/Server APIs, PubSub over MQTT, security, and ready-to-run examples.
Where to start
New to this Lua stack: About opcua-lua
New to OPC UA: OPC UA overview
Learning the Lua APIs step by step: Learning OPC UA with Mako Server
Working with nodes, types, and models: Address Space API
Building an OPC UA client: Client
Building an OPC UA server: Server
Using MQTT PubSub: Publish Subscribe API
Looking for ready-to-run examples: Examples
Documentation
- About opcua-lua
- OPC UA overview
- Address Space API
- Client
- Getting Started
- Client Authentication
- Address Space Browsing
- Reading and Writing Data
- Reading Attributes
- Writing Attributes
- Node Attribute
- Base node attribute numbers
- Object node attribute numbers
- Object Type node attribute numbers
- Variable node attribute numbers
- Variable Type node attribute numbers
- Reference Type node attribute numbers
- Data Type node attribute numbers
- Method node attribute numbers
- View node attribute numbers
- List of all attribute numbers
- Adding Nodes
- HTTP Client
- OPC UA Project Code Generator
- Client API
- Constructor
- client:connect
- client:openSecureChannel
- client:findServers
- client:getEndpoints
- client:createSession
- client:activateSession
- client:browse
- client:read
- client:write
- client:addNodes
- client:translateBrowsePaths
- client:createSubscription
- client:call
- client:renewSecureChannel
- client:checkSecureChannel
- client:connected
- client:closeSession
- client:closeSecureChannel
- client:disconnect
- Message callback
- Server
- Getting Started with Server
- Configuration table
- Exporting Device Data
- XML Models
- Server side authentication
- OPC UA Server Project Code Generator
- HTTP Server
- Server API
- Publish Subscribe API
- Examples
- Learning OPC UA with Mako Server
- Run the tutorial examples
- Run the PubSub tutorial examples
- 1. Minimal server
- 2. Add a folder
- 3. Add variables
- 4. Write a variable
- 5. Use a value callback
- 6. Read with a local client
- 7. Write with a local client
- 8. Call a method
- 9. Define a structure type
- 10. Publish JSON with MQTT PubSub
- 11. Publish binary UADP with MQTT PubSub
- 12. Publish an OPC UA server node
- More advanced PubSub examples
- Next steps
- How to Connect Third-Party Clients
- ESP32 Microcontroller Examples
- Learning OPC UA with Mako Server
- Logging subsystem
- Secure Policy
- Application Certificate
- Data Types
- OPC UA interoperability notes