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: 983
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: 518

Currently Online:
17 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 77

Ibrahim: 76

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

fred: 41

Member Stats:

Guest Posters: 0

Members: 681

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6261

Newest Members:

graciela2073, sagarchau, elviralangwell4, Donnavek, Eddiefauth, DonaldPooma, fidelduke938316, Jan-Pfizer, DavidROunc, fen.pang@woodside.com

Moderators: Jouni Aro: 1010, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 983, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 26, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 321, Lusetti: 0, Ari-Pekka Soikkeli: 5

Administrators: admin: 1