khoih-prog / ESP_WiFiManager

This is an ESP32 / ESP8266 WiFi Connection Manager with fallback web configuration portal. Use this library for configuring ESP32 (including ESP32-S2 and ESP32-C3), ESP8266 modules' WiFi, etc. Credentials at runtime. You can also specify static DNS servers, personalized HostName, fixed or random AP WiFi channel. With examples supporting ArduinoJson
MIT License
371 stars 97 forks source link

Config Portal MQTT parameters #40

Closed fdl333 closed 3 years ago

fdl333 commented 3 years ago

First of all thanks once again for your ever-inspiring work..

One quick question: I am trying your mqtt examples and, although I see you set the parameters in the config portal (AIO_), the possibility to change these does NOT appear on the config portal.

What am I doing wrong?

khoih-prog commented 3 years ago

Hi Francesco,

Again thanks for your nice words. I've just retest the example ConfigOnDRD_FS_MQTT_Ptr as is and don't have any issue with updating the AIO_ params.

I really don't know what's wrong with your settings.

Did you try the example as is (without any modification) to see if the issue persists.

Could you post the whole code, terminal output, Config Portal screen picture so that I can somehow duplicate the issue and know what's wrong (I'm happy if it's a bug, hopefully). Currently I have no idea with such a little info.

fdl333 commented 3 years ago

Thank you so much .. Will look into it first thing tomorrow morning … its 21:50 here now!

From: Khoi Hoang notifications@github.com Sent: lunedì 26 ottobre 2020 17:30 To: khoih-prog/ESP_WiFiManager ESP_WiFiManager@noreply.github.com Cc: fdl333 francesco@delagarda.com; Author author@noreply.github.com Subject: Re: [khoih-prog/ESP_WiFiManager] Config Portal MQTT parameters (#40)

Hi Francesco,

Again thanks for your nice words. I've just retest the example https://github.com/khoih-prog/ESP_WiFiManager/tree/master/examples/ConfigOnDRD_FS_MQTT_Ptr ConfigOnDRD_FS_MQTTPtr as is and don't have any issue with updating the AIO params.

I really don't know what's wrong with your settings.

Did you try the example as is (without any modification) to see if the issue persists.

Could you post the whole code, terminal output, Config Portal screen picture so that I can somehow duplicate the issue and know what's wrong (I'm happy if it's a bug, hopefully). Currently I have no idea with such a little info.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/khoih-prog/ESP_WiFiManager/issues/40#issuecomment-716666523 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AEXCWURD3R7QCBAFWPXGVYLSMWPXLANCNFSM4S7NBNSA . https://github.com/notifications/beacon/AEXCWUUIA5JVRGRUPPF3QYDSMWPXLA5CNFSM4S7NBNSKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFK3XNGY.gif

fdl333 commented 3 years ago

I really don’t want to waste you precious time, but maybe you can give me a few ideas.

I need to setup an ESP32 with your wifimanager so that it simply acts as a “tube” between mqtt and the serial port.

Everything that comes from the serial (except special commands like “$SETUP” need to be sent to mqtt on a specified topic (eg “/ESP32/board_id/tx”), and anything that comes from the mqtt broker to the esp2 on its rx topic (eg /ESP32/board_id/rx”) must be sent to serial..

But it must be totally failsafe, so, if for example, if the wifi AP goes down temporarily, it must be able to re-establish connection to wifi, mqtt broker, and continue)…

I cannot put any buttons, so the esp will receive “$SETUP\n” on the serial, and that should send it into configuration mode..

From: Khoi Hoang notifications@github.com Sent: lunedì 26 ottobre 2020 17:30 To: khoih-prog/ESP_WiFiManager ESP_WiFiManager@noreply.github.com Cc: fdl333 francesco@delagarda.com; Author author@noreply.github.com Subject: Re: [khoih-prog/ESP_WiFiManager] Config Portal MQTT parameters (#40)

Hi Francesco,

Again thanks for your nice words. I've just retest the example https://github.com/khoih-prog/ESP_WiFiManager/tree/master/examples/ConfigOnDRD_FS_MQTT_Ptr ConfigOnDRD_FS_MQTTPtr as is and don't have any issue with updating the AIO params.

I really don't know what's wrong with your settings.

Did you try the example as is (without any modification) to see if the issue persists.

Could you post the whole code, terminal output, Config Portal screen picture so that I can somehow duplicate the issue and know what's wrong (I'm happy if it's a bug, hopefully). Currently I have no idea with such a little info.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/khoih-prog/ESP_WiFiManager/issues/40#issuecomment-716666523 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AEXCWURD3R7QCBAFWPXGVYLSMWPXLANCNFSM4S7NBNSA . https://github.com/notifications/beacon/AEXCWUUIA5JVRGRUPPF3QYDSMWPXLA5CNFSM4S7NBNSKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFK3XNGY.gif

khoih-prog commented 3 years ago

I'm sorry I don't have time now to work/think about the solution to help you out as I'm so busy, in the middle of working on several other libraries.

I suggest you get further helps in these forums where I observed many sophisticated/experienced but willing-to-help experts

  1. Arduino Forum: Programming Questions where I also helped and got the example Custom MQTT parameters using Wifi Manager from there
  2. ESP32 Forum

If possible, please post the solution back here to help other library's users.

fdl333 commented 3 years ago

Thank you soo much as usual! This is exactly what I needed, just a few pointers, not a complete solution!

Francesco Facco de Lagarda

On 27 Oct 2020, at 00:38, Khoi Hoang notifications@github.com wrote:

 I'm sorry I don't have time now to work/think about the solution to help you out as I'm so busy, in the middle of working on several other libraries.

I suggest you get further helps in these forums where I observed many sophisticated/experienced but willing-to-help experts

Arduino Forum: Programming Questions where I also helped and got the example Custom MQTT parameters using Wifi Manager from there ESP32 Forum If possible, please post the solution back here to help other library's users.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.