python – Unable to connect to the MQTT broker using a dynamic Wi-Fi IP after fixing the Ethernet IP address
I’ve figured out why I couldn’t connect to the MQTT broker using a dynamic Wi-Fi IP because I’ve set a fixed IP address for the Ethernet. I’m using a Raspberry Pi to communicate with a PLC via Ethernet and push PLC data to MQTT. Since the PLC’s IP is fixed, I had to set a static IP address for the Raspberry Pi’s Ethernet to ensure smooth communication.
Do you have any suggestions on how to connect to the MQTT broker without needing a fixed Wi-Fi IP while still having a fixed IP for Ethernet?
Read more here: Source link
