-
Notifications
You must be signed in to change notification settings - Fork 2
Description
I have xedge32 flashed to an ESP32-S3 chip. I am able to run the "first project" example without issue.
When I try to build a OPC UA server by copying the "OPC-LED-BUTTON-SERVER.XLUA" example code into a Lua app and run I get the following run failure:
Xedge: Running /spiflash/3SERVER/3SERVER.xlua failed:
3SERVER.xlua:4: attempt to call a nil value (field 'newServer')
stack traceback:
3SERVER.xlua:4: in main chunk
[C]: in function 'xpcall'
.lua/xedge.lua:331: in upvalue 'loadAndRunLua'
.lua/xedge.lua:378: in upvalue 'manageXLuaFile'
.lua/xedge.lua:554: in function <.lua/xedge.lua:548>
When I try to just import the libraries and build and initialize a server to trouble shoot with the following code:
local ua = require("opcua.api")
-- Create new OPC UA server instance.
-- Pass configuration table to server.
local server = ua.newServer()
-- Initialize server.
server:initialize()
I get the same run failure. I can load the opcua.api and create server function "ua.newServer()" but once I add the server intialize function I get the run failure.
Any guidance regarding what I am doing wrong would be appreciated.
Thank you,
Keith