Open yourSpace24 opened 2 years ago
@yourSpace24 please add slave.setUnitAddress(SLAVE_ID 33)
in setup()
as per below, before the slave.begin(..)
setup()
{
slave.cbVector[CB_READ_INPUT_REGISTERS] = readAnalogIn;
// set slave id
slave.setUnitAddress(SLAVE_ID)
// Set the serial port and slave to the given baudrate.
SERIAL_PORT.begin(SERIAL_BAUDRATE);
slave.begin(SERIAL_BAUDRATE);
}
Hi,
i have following example on a atmega 4808 running and try with my linux usb-ftdi rs485 to read the registers.
on the linux machine not sure if the Parity is none but tried the other both as well
maybe you can help me to understand what settings i need to use on the modpoll
many thanks