Skip to content

Arduino hangs on any read attempt #10

@saspol

Description

@saspol

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions