How to use functions in DLL files on node red?

How to use functions in DLL files on node red?

That's extremely vague, and not a lot to go on.

But:

You cant "call" Node RED, or Node JS for that matter from other languages in a native manner.

What can be done, is setup a HTTP/Websocket Endpoint in Node RED, and use whatever framework you are using to make a connection to that endpoint.

Your flow should be designed to react accordingly.

Example:
Creating a .NET dll to make a web reqeust to Node RED

string URI = "http://node-red:1880/api";


using (WebClient wc = new WebClient())
{
     wc.Headers[HttpRequestHeader.ContentType] = "application/json"
     string JSONResult = wc.UploadString(URI, "{key:value}");
}

Please clarify. Your subject says "call the DLL" your question says "How can I call node red when using a function in a DLL"

Which is it?

Or a TCP or UDP or even a PIPE.

Or use MQTT.

...

1 Like

I have used named pipes often in .NET - works well, but needs careful structural work.

Working with .NET since its release ~2003 (I think), one thing I am certain of:
Evan today its websocket support (or ease of use) lacks somewhat compared to other frameworks

1 Like

Sorry for the inaccurate expression, it has been modified

Thank you for your reply

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.