Cannot compile ESP32 Modbus - unconnected pin

For general Flowcode discussion that does not belong in the other sections.
Post Reply
RGV250
Posts: 264
http://meble-kuchenne.info.pl
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 23 times
Been thanked: 30 times

Cannot compile ESP32 Modbus - unconnected pin

Post 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 782 times
Modbus unconnected pin compile error.jpg
Modbus unconnected pin compile error.jpg (23.73 KiB) Viewed 782 times

BenR
Matrix Staff
Posts: 1707
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 435 times
Been thanked: 598 times

Re: Cannot compile ESP32 Modbus - unconnected pin

Post 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.

RGV250
Posts: 264
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 23 times
Been thanked: 30 times

Re: Cannot compile ESP32 Modbus - unconnected pin

Post 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

Post Reply