# Mqtt-\>opcua bridging

**URL:** <https://discourse.nodered.org/t/mqtt-opcua-bridging/17705>\
**Category:** General\
**Created:** [9 November 2019 11:29 UTC](https://discourse.nodered.org/t/mqtt-opcua-bridging/17705 "2019-11-09T11:29:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![fifthh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fifthh/32/14112_2.png) [@fifthh](https://discourse.nodered.org/u/fifthh)\
**Post date:** [9 November 2019 11:29 UTC](https://discourse.nodered.org/t/mqtt-opcua-bridging/17705/1 "2019-11-09T11:29:36Z")

</div>

Hello.  
I'm trying to bridge mqtt to opc ua and i was wondering how the flow would look like with the " node-red-contrib-opcua" node.

Currently i have setup the following:  
mqtt (client that connects to broker) -\>OpcUA Item (ns=2;s=temp.1, String) -\> OpcUA server -\> Debug node which gives me a whole lot of information.

With my opcsniffer i can't find anything from this flow, anyone tried to do this?

---

<div class="post-metadata">

**Author:** ![JaredG](https://avatars.discourse-cdn.com/v4/letter/j/d26b3c/32.png) [@JaredG](https://discourse.nodered.org/u/JaredG)\
**Post date:** [9 November 2019 15:18 UTC](https://discourse.nodered.org/t/mqtt-opcua-bridging/17705/2 "2019-11-09T15:18:38Z")

</div>

Which OPC Sniffer are you using? if it is DCOM based it will not see OPC UA. If the OPCUA Server Node truly exposes as an OPC UA server try UAExpert from Unified Automation to see if you can connect and view your data.

---

<div class="post-metadata">

**Author:** ![fifthh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fifthh/32/14112_2.png) [@fifthh](https://discourse.nodered.org/u/fifthh)\
**Post date:** [9 November 2019 16:34 UTC](https://discourse.nodered.org/t/mqtt-opcua-bridging/17705/3 "2019-11-09T16:34:23Z")

</div>

I'm using UAExpert.  
Since i can't find the adress in the tree menu i tried to add it manually but it gives me "BadNodeIdUnknown"

This is my flow if you would take a look:

[{"id":"64a907bb.9d3a68","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"4e387510.2c143c","type":"OpcUa-Item","z":"64a907bb.9d3a68","item":"ns=2;s=elsystemp","datatype":"String","value":"","name":"temp.1","x":530,"y":480,"wires":[["bcfc984c.b77848","2d09956c.a5137a"]]},{"id":"a6ccbc8c.0a437","type":"mqtt in","z":"64a907bb.9d3a68","name":"temp.1","topic":"application/7/device/device4/rx","qos":"2","datatype":"json","broker":"54e59f7e.62193","x":290,"y":460,"wires":[["4e387510.2c143c","978c267c.c0f3a8"]]},{"id":"978c267c.c0f3a8","type":"debug","z":"64a907bb.9d3a68","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":520,"y":340,"wires":},{"id":"2d09956c.a5137a","type":"OpcUa-Server","z":"64a907bb.9d3a68","port":"53880","name":"opc","endpoint":"","x":780,"y":500,"wires":[["bec60c1b.04569"]]},{"id":"bcfc984c.b77848","type":"debug","z":"64a907bb.9d3a68","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":680,"y":400,"wires":},{"id":"bec60c1b.04569","type":"debug","z":"64a907bb.9d3a68","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":990,"y":500,"wires":},{"id":"54e59f7e.62193","type":"mqtt-broker","z":"","name":"mqtt","broker":"192.168.1.23","port":"1883","clientid":"","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]

---

<div class="post-metadata">

**Author:** ![fifthh](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fifthh/32/14112_2.png) [@fifthh](https://discourse.nodered.org/u/fifthh)\
**Post date:** [9 November 2019 17:40 UTC](https://discourse.nodered.org/t/mqtt-opcua-bridging/17705/5 "2019-11-09T17:40:13Z")

</div>

I can connect to node red opc ua server using uaexpert but i can't find my node in there 🙂

---

<div class="post-metadata">

**Author:** ![abedgarr](https://avatars.discourse-cdn.com/v4/letter/a/d26b3c/32.png) [@abedgarr](https://discourse.nodered.org/u/abedgarr)\
**Post date:** [12 July 2020 21:51 UTC](https://discourse.nodered.org/t/mqtt-opcua-bridging/17705/6 "2020-07-12T21:51:29Z")

</div>

I have the same problem. could you solve it

---

<div class="post-metadata">

**Author:** ![andramalech](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/andramalech/32/25617_2.png) [@andramalech](https://discourse.nodered.org/u/andramalech)\
**Post date:** [12 July 2020 23:19 UTC](https://discourse.nodered.org/t/mqtt-opcua-bridging/17705/7 "2020-07-12T23:19:36Z")

</div>

i use Nzfarmers mqtt2opcua bridge. it has worked great with even with a high transaction rate.  
[NZFARMER](https://github.com/nzfarmer1/mqtt2opcua)
