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

How to use WiFiManagerParameter #37

Closed khoih-prog closed 3 years ago

khoih-prog commented 3 years ago

From @ILIJA-ILIEV

Hello Sir, is it possible to use WiFiManagerParameter how it is defined in tzapu/WiFiManager?

I'm moving your question to this new issue. Please don't post next time to non-relating one captive portal: # 36

You can use WMParamenter the same way as in tzapu/WiFiManager. Just change the name from WMParameter to ESP_WMParameter.

For example:

ESP_WMParameter custom_blynk_server("blynk_server", "blynk_server", blynk_server, BLYNK_SERVER_LEN + 1);

There are mane examples demonstrating how to use ESP_WMParameter, such as

  1. AutoConnectWithFSParameters
  2. ConfigOnDRD_FS_MQTT_Ptr

and more.

ILIJA-ILIEV commented 3 years ago

Sorry, I didn't search properly maybe. Thanks for fast answer.