Page 1 of 1

Cannot compile ESP32 Modbus - unconnected pin

Posted: Wed Jul 27, 2022 12:35 pm
by RGV250
Hi,
I had this working but now when I go to compile I get a warning that there is an unconnected pin. Originally I used the pin but changed the MAX485 to a module that did not need it so changed it to unconnected and compiled and everything worked.
I then made a modification and saved it with a new name, when I went to compile I got an error and going back to the original file does the same now.
The issue is with the DDRP pin
Modbus unconnected pin error.jpg
Modbus unconnected pin error.jpg (128.09 KiB) Viewed 805 times
Modbus unconnected pin compile error.jpg
Modbus unconnected pin compile error.jpg (23.73 KiB) Viewed 805 times

Re: Cannot compile ESP32 Modbus - unconnected pin

Posted: Wed Jul 27, 2022 1:10 pm
by BenR
Hello,

If you do not need the DDR pin then simply change the BusType property and this will hide the pin and allow compilation.

Re: Cannot compile ESP32 Modbus - unconnected pin

Posted: Wed Jul 27, 2022 1:19 pm
by RGV250
Thanks, it is working now, strange that it seemed to work the first time?. Sort of makes me wonder why there is an "Unconnected" option for the pin.

Bob