Hi, i trying to use this library on Mega:
HardwareSerial modbusSerial = Serial2;
modbusMaster modbus;
modbusSerial.begin(2400);
modbus.begin(101, modbusSerial);
float val = modbus.uint16FromRegister(0x04, 1, bigEndian);
TTL to RS485 adapter blink 8 times TX on boot, then Mega hangs on any type read register attempt.
Any suggestion how to debug this?
Hi, i trying to use this library on Mega:
HardwareSerial modbusSerial = Serial2;
modbusMaster modbus;
modbusSerial.begin(2400);
modbus.begin(101, modbusSerial);
float val = modbus.uint16FromRegister(0x04, 1, bigEndian);
TTL to RS485 adapter blink 8 times TX on boot, then Mega hangs on any type read register attempt.
Any suggestion how to debug this?