OPC UA PubSub MonitoredItem to PublishedDataSetDataType|OPC UA Standard|Forum|OPC Foundation

Forum Scope


Forum Options

Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
OPC UA PubSub MonitoredItem to PublishedDataSetDataType
Henrik Bjørnland
New Member
Forum Posts: 1
Member Since:
sp_UserOfflineSmall Offline
11/28/2022 - 08:20
sp_Permalink sp_Print

Hey, I am fairly new to the whole PubSub concept but am currently trying to implement the .Net SDK and make it work.


I have an OPC UA Server, that I have connected to an UA Client and subscribed to some data, but that data is in the form of a MonitoredItem, what I now want to do is to map it to a PublishedDataSet and send it over MQTT. Are there any easy way to this or do I need to create a new PublishedDataSetDataType from the MonitoredItem?


I Just assume this is the way I should be going as in the 'UA Specification part 14 - PubSub' it states "A PublishedDataSet is similar to either an Event MonitoredItem or a list of data MonitoredItems in the Client Server Subscription model."

Randy Armstrong
Forum Posts: 1486
Member Since:
sp_UserOfflineSmall Offline
11/29/2022 - 14:33
sp_Permalink sp_Print

A PublishedDataSet is equivalent to a NotificationMessage however the mechanism for defining a PublishedDataSet is quite different.

A complete working example of using NETStandard to send via MQTT is here:

If you are not an OPC Foundation member an older version of the same code is here:

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 13
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1370
Posts: 4654