Hello.
I'm using ModbusRtu.h library.
My arduino is MODBUS Slave.
I'm using build in USB port.
It all works.
But....
Everytime I reconect the master (PC) to arduino, the uint16_t registers are reset (they all have value 0).
Can this be fixed using some "no delete on start" function?
The problem is that I use RF protocol comunicating with temperature senzor.
It updates every 2 minutes.
If I restart the supervisor (Node-Red) I've got zerros until the RF refreshes....
In worst case 2 minutes of zeros...
If I will use RS485 and pins 1 & 2 + DE/RE pin will the arduino also RESET?