I'm trying to create a communication driver i C language for reading data from variuos sources like for example modbus devices. I am going to include much more then one method of communication in it. My idea is to make this driver as stand alone execute file in linux system on raspberry pi. The driver will recieve configuration and then in return i will get read data from device continusly 24h/365. My issue is this:
I want to run this driver using node-red node and control if this driver is working or not. If not working i want to run it again and so on...
For long running exec commands that you want to interact with while there running there is the daemon node: https://flows.nodered.org/node/node-red-node-daemon
I use it to interact with several exec scripts that run 24/7 365.
Johannes
Do you have any reason to not use the available modbus nodes?
I am curious as to why you might develop a C application for accessing modbus then attempt to remote control it from node-red when node-red already has the ability to poll modbus devices.