Closed
Description
Hello,
I was trying to use your library in order to use my Esp32S2 as a master device. I'm using ST3485EBD transceiver and I successfully managed to send commands to slave device, and I can see that it does react on my requests. Unfortunately, no matter what I was doing I'm unable to readback from the device, and I'm getting a timeout. I suspect that my issue might be related with the fact that i don't do anything with the RTS pin. For now my code looks like this:
// those are my Serial1 pins
#define GPIO_TXD 17
#define GPIO_RXD 18
#define GPIO_RTS 19
void setup()
{
Serial1.begin(19200, SERIAL_8E1);
mb.begin(&Serial1);
mb.setBaudrate(19200);
mb.master();
}
void loop()
{
if (!mb.slave())
{
mb.writeHreg(1, 0xD001, 0x3000, cbWrite);
}
mb.task();
yield();
}