Regarding pub sub concept|OPC UA Standard|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
Regarding pub sub concept
Avatar
Jacky Bek
Member
Members
Forum Posts: 21
Member Since:
12/13/2020
sp_UserOfflineSmall Offline
1
02/16/2021 - 09:09
sp_Permalink sp_Print

1. I have a source sensor at the edge that generates a xml-like payload every 9 seconds.rn2. I now want to use opcua-mqtt to deliver it across to the cloud opcua server.  This is what I did:rn2a. A opcua server A  is initialised and running.  A opcUA client is then started up to read the xml, processes it and updates the data to the opcua address space on the server.rn2b.  As the server nodes get updated, I use monitoreditems to write the data to a historian.  I also publish the same contents to a mqtt broker.rn3a.  Now I want to subscribe to the same content using a second opcua server B at the cloud side.rn3b.  After server b is started up, I use the callback function to read the contents off the mqtt broker, extracts the json contents and I want to update the address space of server b.rn3c.  However, in the callback function, I cannot access the server pointer.rn rn 

Avatar
Randy Armstrong
Admin
Forum Posts: 1579
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
02/16/2021 - 21:55
sp_Permalink sp_Print

It is not clear what you are asking.

Avatar
Jacky Bek
Member
Members
Forum Posts: 21
Member Since:
12/13/2020
sp_UserOfflineSmall Offline
3
02/17/2021 - 05:12
sp_Permalink sp_Print

What I am asking is : in the callback function, there is no way for me to access the UA server pointer.  I need this to update the nodes in the server. 

how can I update the nodes when the callback is activated ?

Avatar
Randy Armstrong
Admin
Forum Posts: 1579
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
4
02/17/2021 - 07:41
sp_Permalink sp_Print

That depends on the API that defined the call back.

It seems to be an MQTT library callback from your description which means it won’t know about OPC UA but it might provide a bucket that returns data provided by the application when the action is initiated.

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