thiagoralves / OpenPLC_Editor

OpenPLC Editor - IDE capable of creating programs for the OpenPLC Runtime
GNU General Public License v2.0
430 stars 207 forks source link

Fixed issuses regarding MQTT_CONNECT_AUTH #96

Closed duyle1402 closed 1 year ago

duyle1402 commented 1 year ago

after spending a lot of time to solve the problem at : https://openplc.discussion.community/post/try-using-mqttconnectauth-esp32-wifi-12767911?pid=1336234350 I finally fixed this issues; I think this can help: At: https://github.com/thiagoralves/OpenPLC_Editor/blob/master/editor/dialogs/ArduinoUploadDialog.py line 594 we should define if (self.plc_program.find('MQTT_CONNECT;') > 0) or (self.plc_program.find('MQTT_CONNECT_AUTH;') > 0): because if you want to use MQTT_CONNECT_AUTH this independently from MQTT_CONNECT.

thiagoralves commented 1 year ago

Fixed! Thanks for the help in finding the issue