Help me to reset wifi login pasword from my device

How can I do re-provisioning?

The same way you did it first time around - using +Add Device in the app.

If that doesn’t work then you need to clarify exactly what you’ve done so far. Did you keep the template when you deleted the device?

What do you see in the web console?

Pete

Yes, I tried with to add device.
but iphone cannot find it.

Yes I have them in mobile app and in the web console

Just erase the flash and start from the beginning.

Okay, well as I said before, the reset pin is dependent on which board type you’ve un-commented in your main .ino file.

What you are supposed to connect the other end of your reset button to (GND or 3.3v) will also depend on the true/false value of the BOARD_BUTTON_ACTIVE_LOW setting for the board type you have defined.

If you’ve defined the board type as USE_WROVER_BOARD then the button pin is GOIO15 and the other side of the reset switch should be connected to GND if you are using the default values…

#if defined(USE_WROVER_BOARD)

  #define BOARD_BUTTON_PIN            15
  #define BOARD_BUTTON_ACTIVE_LOW     true

If you are using the TTGO_T7 board type, or have no board type defined so that the custom settings are used then the reset button pin is GPIO0 and the other side of the reset button should be connected to GND. This assumes that you didn’t make any changes to the defaults when you uploaded your sketch.

Pete.

1 Like

Hello Pete
I found that my board is wrover board. And I connected a button to pin 15 and GND.

how many seconds I should hold the button to reset configuration.
Thank you.

Just because your board has a chip mounted on it that says WROVER on it doesn’t mean that the board uses the same pins for the LED(s) that are defined in the Settings.h file in the #if defined(USE_WROVER_BOARD) section.

In fact, I’d be very surprised if your board is the same as this part of Settings.h because the #if defined(USE_WROVER_BOARD) section is expecting an RGB LED on pins 0, 2 & 4 and I’ve never seen a board like that.

You should read this to understand more…

Ten

Pete.

After ten seconds board gives message [1244048] CNNECTING_NET =O> RESET_CONFIG
but iphone app cannot find device. and in wifi settings of the phone there is not wifi signal from the board.

Step 1 - correctly configure the LED setting in Settings.h so that you get proper visual feedback about the provisioning process.

Step 2 - stop posting screenshots and instead copy and paste the output from your serial monitor, with triple backticks at the beginning and end so that it displays. In addition, provide proper detailed narrative about exactly what steps you have taken, what your LED is doing, and any additional information which may prove useful.

Pete.

Thank you Pete
I have not changed anything in Settings.h
from Settings.h

/*
 * General options
 */

#define BOARD_HARDWARE_VERSION        "1.0.0"

/*
 * Board configuration (see examples below).
 */

#if defined(USE_WROVER_BOARD)

  // Custom board configuration
  #define BOARD_BUTTON_PIN            15                    // Pin where user button is attached
  #define BOARD_BUTTON_ACTIVE_LOW     true                  // true if button is "active-low"

  #define BOARD_LED_PIN_R             0                     // Set R,G,B pins - if your LED is PWM RGB 
  #define BOARD_LED_PIN_G             2
  #define BOARD_LED_PIN_B             4
  #define BOARD_LED_INVERSE           false                 // true if LED is common anode, false if common cathode
  #define BOARD_LED_BRIGHTNESS        128                   // 0..255 brightness control

#else

  // Custom board configuration
  #define BOARD_BUTTON_PIN            0                     // Pin where user button is attached
  #define BOARD_BUTTON_ACTIVE_LOW     true                  // true if button is "active-low"

  #define BOARD_LED_PIN               4                     // Set LED pin - if you have a single-color LED attached
  //#define BOARD_LED_PIN_R           27                    // Set R,G,B pins - if your LED is PWM RGB 
  //#define BOARD_LED_PIN_G           26
  //#define BOARD_LED_PIN_B           25
  //#define BOARD_LED_PIN_WS2812      33                    // Set if your LED is WS2812 RGB
  #define BOARD_LED_INVERSE           false                 // true if LED is common anode, false if common cathode
  #define BOARD_LED_BRIGHTNESS        64                    // 0..255 brightness control

#endif


/*
 * Advanced options
 */

#define BUTTON_HOLD_TIME_INDICATION   3000
#define BUTTON_HOLD_TIME_ACTION       10000

#define BOARD_PWM_MAX                 1023

#define LEDC_CHANNEL_1     1
#define LEDC_CHANNEL_2     2
#define LEDC_CHANNEL_3     3
#define LEDC_TIMER_BITS    10
#define LEDC_BASE_FREQ     12000

#define CONFIG_AP_URL                 "blynk.setup"
#define CONFIG_DEFAULT_SERVER         "blynk.cloud"
#define CONFIG_DEFAULT_PORT           443

#define WIFI_NET_CONNECT_TIMEOUT      30000
#define WIFI_CLOUD_CONNECT_TIMEOUT    30000
#define WIFI_AP_CONFIG_PORT           80
#define WIFI_AP_IP                    IPAddress(192, 168, 4, 1)
#define WIFI_AP_Subnet                IPAddress(255, 255, 255, 0)
//#define WIFI_CAPTIVE_PORTAL_ENABLE

#define USE_TICKER
//#define USE_TIMER_ONE
//#define USE_TIMER_THREE

#define BLYNK_NO_DEFAULT_BANNER

#if defined(APP_DEBUG)
  #define DEBUG_PRINT(...) BLYNK_LOG1(__VA_ARGS__)
#else
  #define DEBUG_PRINT(...)
#endif

here what it says in serial monitor after holding button after 10s.

> [250] 
15:07:47.003 ->     ___  __          __
15:07:47.003 ->    / _ )/ /_ _____  / /__
15:07:47.003 ->   / _  / / // / _ \/  '_/
15:07:47.003 ->  /____/_/\_, /_//_/_/\_\
15:07:47.003 ->         /___/ v1.0.1 on ESP32
15:07:47.003 -> 
15:07:47.003 -> [251] --------------------------
15:07:47.003 -> [254] Product:  machine3
15:07:47.003 -> [257] Hardware: 1.0.0
15:07:47.003 -> [259] Firmware: 0.1.23 (build Mar 11 2022 15:07:13)
15:07:47.003 -> [263] Token:    ...cpBY
15:07:47.003 -> [265] Device:   ESP32 @ 240MHz
15:07:47.037 -> [268] MAC:      7C:9E:BD:61:40:CC
15:07:47.037 -> [271] Flash:    4096K
15:07:47.037 -> [273] ESP sdk:  v3.3.5-1-g85c43024c
15:07:47.037 -> [276] Chip rev: 1
15:07:47.037 -> [278] Free mem: 255608
15:07:47.037 -> [280] --------------------------
15:07:47.037 -> [283] INIT => CONNECTING_NET
15:07:55.955 -> [9201] Hold the button to reset configuration...
15:08:08.354 -> [21607] CONNECTING_NET => RESET_CONFIG

Does your board have an RGB LED connected to pins 0, 2 and 4 ?
If not then you should change the Settings.h file to reflect the physical reality of your actual board.

I guess you missed that bit?

Pete.

Thank you Pete,

How do I know whether RGB connected to pins 0, 2 and 4?
Here is my esp32 board looks like.

During loading code red led is blinking on the board. But when I connected to 0 pin to physical RED LED. the new led is not blinking, blinking only the red one on board.

The pinout diagram you’ve posted has a WROOM chip, not WROVER.

The board in the diagram does not have an RGB chip on it.

Pete.

Sorry I didn’t know that.
I commented out this part of my code

// Uncomment your board, or configure a custom board in Settings.h
//#define USE_WROVER_BOARD

Now I put a button to pin 0. And hold 10 s.
monitor gives this message again.


16:22:54.603 -> [249] --------------------------
16:22:54.603 -> [252] Product:  machine3
16:22:54.603 -> [255] Hardware: 1.0.0
16:22:54.603 -> [257] Firmware: 0.1.23 (build Mar 11 2022 16:22:14)
16:22:54.603 -> [261] Token:    ...cpBY
16:22:54.637 -> [263] Device:   ESP32 @ 240MHz
16:22:54.637 -> [266] MAC:      7C:9E:BD:61:40:CC
16:22:54.637 -> [269] Flash:    4096K
16:22:54.637 -> [271] ESP sdk:  v3.3.5-1-g85c43024c
16:22:54.637 -> [274] Chip rev: 1
16:22:54.637 -> [276] Free mem: 255608
16:22:54.637 -> [278] --------------------------
16:22:54.637 -> [281] INIT => CONNECTING_NET
16:22:57.700 -> [3359] Hold the button to reset configuration...
16:23:11.321 -> [16988] CONNECTING_NET => RESET_CONFIG

Iphone app could not find the new device.

Pete.

I am very sorry I don’t know how to do that.
Just uncommented RGB LEDs

#else

  // Custom board configuration
  #define BOARD_BUTTON_PIN            0                     // Pin where user button is attached
  #define BOARD_BUTTON_ACTIVE_LOW     true                  // true if button is "active-low"

  //#define BOARD_LED_PIN               4                     // Set LED pin - if you have a single-color LED attached
  #define BOARD_LED_PIN_R           27                    // Set R,G,B pins - if your LED is PWM RGB 
  #define BOARD_LED_PIN_G           26
  #define BOARD_LED_PIN_B           25
  //#define BOARD_LED_PIN_WS2812      33                    // Set if your LED is WS2812 RGB
  #define BOARD_LED_INVERSE           false                 // true if LED is common anode, false if common cathode
  #define BOARD_LED_BRIGHTNESS        128                  // 0..255 brightness control

#endif

but it gave nothing

Write a sketch which turns each useable GPIO on and off several times, and tells you in the serial monitor which GPIO is currently being tested.
When the LED flashes you’ll have found which GPIO it’s connected to, and you’ll be able to edit your Settings.h accordingly.

Or, find some online documentation for you board which tells you which GPIO the onboard LED is connected to and test it with a simple sketch.

Pete.

Thank you Pete, I found that my esp32 ESP-WROOM-32 has no build in LED.
And I found that document has the same.

https://wiki.keyestudio.com/KS0413_keyestudio_ESP32_Core_Board

Pete, why we need these LEDs for reseting wifi login and password?

that makes this comment rather worrying then…

as the only LED shown on that device is a power indicator. If the power is being connected and disconnected during the upload then you should be getting error messages in your IDE to say that the upload has failed.
You should investigate why the LED is flashing in this situation.

I’d suggest you re-read Edgent troubleshooting guide I linked in post #9 to understand the purpose of the LED.

You should add an LED (with a suitable current limiting resistor) between one of your available GPIO pins and GND (observing correct polarity for the LED of course) and update your Settings.h file accordingly.
With the other side if the LED connected to GND as described, you’ll need #define BOARD_LED_INVERSE set to false

Pete.