• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
REST API server data communication
#2
Well,

Node-RED supports a "http request" node ever since which is used to call RESTapi functions like GET,POST,DELETE etc.

There are many examples how to use it like this post here https://stevesnoderedguide.com/node-red-...-beginners. But don't hesitate to find your own web links.

So once you have the data available via the http request node in the context in Node-RED you can pass this data to an OPC UA client node which in turn sends this data to an OPC UA server. Since OPC UA is TCP/IP based protocol it doesn't matter if the connection goes across eth0 or the optional RTE port cifx0. Both will work.

For a minimum viable product test I recommend to run "Node-RED for windows" first and make simple plausibility pretests of the nodes "http request" and "OPC UA client" on a PC since both just need a LAN interface to run prior any netPI tests. If this works then it will run on netPI also with Node-RED running in a container.

Thx
Armin
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)

  Reply


Messages In This Thread
REST API server data communication - by MGharat - July-20th-2021, 12:17 PM
RE: REST API server data communication - by Armin@netPI - July-20th-2021, 12:42 PM
RE: REST API server data communication - by MGharat - July-21st-2021, 07:01 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  netPI opc ua server pull image error wswitula 3 3,307 August-27th-2021, 10:47 AM
Last Post: wswitula
  OPC UA server with NetPi RTE DSongra 9 4,651 July-27th-2021, 12:01 PM
Last Post: Armin@netPI
  Docker exposed port don't send data on eth0 COswald 3 3,341 July-15th-2021, 02:10 PM
Last Post: Armin@netPI
  Accessing netPI web UI with REST API Armin@netPI 14 8,529 June-30th-2021, 05:06 AM
Last Post: Armin@netPI
  [SOLVED]DHCP server not working m-yoshikawa 24 14,748 June-11th-2021, 07:04 AM
Last Post: tad
  communication cycle as EtherCAT slave tad 2 2,296 April-20th-2021, 11:14 AM
Last Post: tad
  requirement : reading of ethrnet/ip data & storing MGharat 6 4,238 February-1st-2021, 08:07 AM
Last Post: Armin@netPI
  Get host MAC via REST API inside container bschandra 4 3,883 November-16th-2020, 09:26 AM
Last Post: bschandra
  Data logger Jan 11 6,669 October-14th-2020, 03:43 PM
Last Post: Jan
  Communication between PLC and Netpi Dipro 4 3,880 October-3rd-2020, 10:07 AM
Last Post: Dipro

Forum Jump:


Users browsing this thread: 1 Guest(s)