Hi guys,
I am implementing a test environment that uses TTEthernet for communication. For this I have created multiple instances of node red on multiple systems with TEE interfaces. I was planning initially to bridge node red through TCP with the C application that utilises the TTE interface, but I was wondering if any of you can suggest a way to wrap the C based TTE API and use it natively inside node red. This will improve the performance and will allow node red to use the TTE interface directly.
I have seen some info regarding C wrapping for node.js but I am a bit lost and I don’t think there will be many similarities with node red. I would really appreciate it if you point me to the right direction or even better if you have done something similar.
Cheers,
Panos
When that is working, you can easily make the Node.JS extension available to Node-Red. Either by creating your own node that "require"s you extension or by requiring it in the settings.js file and passing it as an object to the global variable.
Thanks guys, these are very interesting links! I will try to do that and if I succeed I will post my findings here.
Dave, can you please clarify what you mean by saying "Of course these would be for extra functions / nodes that you write and would not affect the built in tcp calls inside node.js core libraries itself etc."
Cheers
Hey Guys,
I did manage to wrap the C TTE library successfully and I can use the TTE controllers with nodejs. What I used was: