Skip to content

Commit f647894

Browse files
committed
Eliminate "node_id" API - as it only makes sense for the ModBus demonstration - and not even there much.
1 parent ff9e303 commit f647894

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

examples/opcua_server/opcua_server.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ void setup()
397397
UA_NodeId modbus_md02_node_id;
398398
rc = UA_Server_addObjectNode(opc_ua_server,
399399
UA_NODEID_NULL,
400-
opta_opcua->node_id(),
400+
UA_NODEID_NUMERIC(0, UA_NS0ID_OBJECTSFOLDER),
401401
UA_NODEID_NUMERIC(0, UA_NS0ID_ORGANIZES),
402402
UA_QUALIFIEDNAME(1, "ModbusRs485Md02"),
403403
UA_NODEID_NUMERIC(0, UA_NS0ID_BASEOBJECTTYPE),

src/Opta.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,6 @@ class Opta
7878
const char * display_name,
7979
Led::OnSetLedStateFunc const on_set_led_state);
8080

81-
[[nodiscard]] UA_NodeId node_id() const { return _node_id; }
82-
8381

8482
private:
8583
UA_Server * _server;

0 commit comments

Comments
 (0)