I wrote some code in c++, that I managed to have it called through node.js
All good so far, but I am not really sure how to proceed next..
I do have my binding.gyp file ( where all my functions and header files are called), main.js ( and all the ones created when building my program ), ending up with a main.js file that looks like this :
const calculate = require('./build/Release/sensor')
with my C++ program returning a floating number( I d like to update it to return an array since my sensor returns both temperature and humidity );
My question now is, how could I take these 4 lines of code and embed them in node-red?
Thanks in advance