Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to have what serial writes during autoconnect ? #1782

Open
davidmarli opened this issue Nov 24, 2024 · 1 comment
Open

How to have what serial writes during autoconnect ? #1782

davidmarli opened this issue Nov 24, 2024 · 1 comment

Comments

@davidmarli
Copy link

Hi, not really an issue, but I use esp32 with displayscreen.
When I use autoconnect function, I can see in monitor many informations display :
for example :
*wm:AutoConnect
*wm:No wifi saved, skipping
*wm:AutoConnect: FAILED for 1 ms
*wm:StartAP with SSID: AfficheurTEMPO
*wm:AP IP address: 192.168.4.1
*wm:Starting Web Portal

I would like to use this lines and display them on the screen instead of on serial monitor.
How do I do that ?

Thank you.

@B1ackt34
Copy link

I use this way

Add libraries

#include <ItemSubMenu.h>
#include <ItemCommand.h>
#include <LcdMenu.h>
#include <MenuScreen.h>
#include <SimpleRotary.h>
#include <display/LiquidCrystal_I2CAdapter.h>
#include <input/SimpleRotaryAdapter.h>
#include <renderer/CharacterDisplayRenderer.h>

And then put this into setup

if(wifiManager.autoConnect("AutoConnectAP")){
      lcd.clear();
      lcd.setCursor(2, 1);
      lcd.print("WiFi connected");
      lcd.setCursor(2, 2);
      lcd.print("IP: ");
      lcd.setCursor(6, 2);
      lcd.print(WiFi.localIP());
      delay(2000);
      lcd.clear();
      }
  else {
      lcd.clear();
      lcd.setCursor(2, 1);
      lcd.print("Configuration");
      lcd.setCursor(2, 2);
      lcd.print("portal is");
      lcd.setCursor(2, 3);
      lcd.print("running");
      delay(2000);
      lcd.clear();
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants