Overview: I have an ESP-01 programmed using the ModbusIP_ESP8266.h library. The AHMI can read and write the registers without issue. I am using 12 basic buttons to set the register bits and 12 pilot lamps to give register state feedback. But there is something that's confusing me about the connection.
I have two buttons that Enable and Disable the ModbusTCPCom1 connection.
Enable = ModbusTCPCom1.DisableSubscriptions = False
Disable = ModbusTCPCom1.DisableSubscriptions = True
Oddly though, after I disable the subscriptions the program is still able to communicate with the external device when I use the basic buttons to change register values. The pilot lamps however do not respond to the changes.
Can anyone here explain why this happens?
I hope I gave enough detail. If not I can give more. Thanks.