Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Adding custom namespaces into Server/Namespaces(i=15957)
June 17, 2022
10:09, EEST
Avatar
t.tulka
Member
Members
Forum Posts: 15
Member Since:
March 31, 2022
sp_UserOfflineSmall Offline

Hello,
Adding a new custom namespace into the namespaces table does not add the namespace into the Server(i=2253) subnode Namespaces(i=15957).
You can check this with the SampleConsoleServer example.
Can I do this somehow programmatically?
Thanks!

June 17, 2022
10:31, EEST
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 1026
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Hi,

There is no automatic logic yet for those metadata nodes. In practice as far as I’m aware almost nothing yet uses those.

IF you just meant how the NamespaceArray is to be updated, it can be done via
server.getNodeManagerRoot().getServerData().updateNamespaceArray();
(If you add them after starting, this happens internally on start automatically)

As to adding a NamespaceMetadataType instance(s) below the Server/Namespaces can be done as adding “any other node” with the SDK, as “they are just nodes”. As to how to do that, open the MyNodeManager in the sampleconsoleserver example and seach for “createInstance”. That is to say, something like
instance = nodeManagerUaNode.createInstance(NamespaceMetadataTypeNode.class, …)

You must then also attach it via the reference + fill the data. Since it (NamespaceMetadataTypeNode) is a base information model type that is generated to the SDK (by us), you can use just e.g. instance.setNamespaceVersion(…) etc.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 1919

Currently Online:
18 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Heikki Tahvanainen: 402

hbrackel: 144

rocket science: 88

pramanj: 86

Francesco Zambon: 83

Ibrahim: 78

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

Member Stats:

Guest Posters: 0

Members: 735

Moderators: 7

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1523

Posts: 6449

Newest Members:

rust, christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCib, dalenegettinger, howardkennerley, Thomassnism, biancacraft16

Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1026, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0

Administrators: admin: 1