I had been working with old blynk version without any issue. My blynk project with ESP8266 works (both old and new Blynk) without any issue, but I have issue with Edgent_ESP32 example. I have error as below after provided Wifi SSID and password:
I have tried many ways including upgraded to newest Blynk, reinstall Arduino to latest release then install fresh libraries including Blynk library, but no luck :).
Project info.: • Hardware model + communication type: ESP32 • Smartphone OS (iOS or Android) + version: iOS 15.2.1 • Blynk server or local server • Blynk Library version: 1.0.1
My code is very simple as the example (no changed except BLYNK_TEMPLATE_ID and BLYNK_DEVICE_NAME). This template ID and device name has been used and worked before but I did some update so I started the project again then shit happened :).
Hope to get help from everyone
// Fill-in information from your Blynk Template here
#define BLYNK_TEMPLATE_ID "TMPLK4-xxxxx"
#define BLYNK_DEVICE_NAME "xxxxxxxxxx"
#define BLYNK_FIRMWARE_VERSION "0.1.0"
#define BLYNK_PRINT Serial
//#define BLYNK_DEBUG
#define APP_DEBUG
// Uncomment your board, or configure a custom board in Settings.h
//#define USE_WROVER_BOARD
//#define USE_TTGO_T7
#include "BlynkEdgent.h"
void setup()
{
Serial.begin(115200);
delay(100);
BlynkEdgent.begin();
}
void loop() {
BlynkEdgent.run();
}
You have no board type defined, so does the custom board configuration in Settings.h match your board as far as LED and button settings are concerned?
What does your serial monitor show when you try to clear the saved configuration with a 10 second button press, and during the subsequent re-provisioning?
Just delete that library and use the one on github. The library was tweaked a bit recently yet the arduino library manager still installs an older one.
If you have the serial monitor open when you press the button for 10 seconds you should see a message about the credentials being cleared.
There is no message, so either you haven’t answered my question fully, or the button pin is wrong in the Settings.h file.
I don’t understand your question.
The example is in the Blynk examples folder of the IDE, and you need to add-in your BLYNK_TEMPLATE_ID and BLYNK_DEVICE_NAME then configure the correct settings for your board.
This is done by un-commenting one of the pre-defined board types, or leaving them commented-out and editing custom board type in the Settings.h file.
Whichever approach you take, the Settings.h file needs to reflect the correct settings for the LED and push button switch connected to your board. Most boards have built-in LEDs that can be controlled via a GPIO and an onboard Flash button (not the RST button). If your board doesn’t then you need to add your own, and configure the Settings.h file to match the connections you’ve used.
Actually I have pushed the BOOT button on my ESP32 dev board to clear all password from my Blynk previous project (I developed my previous Blynk project with Blynk lib rev. 1.0.0).
I saw that the message showing that the credentials has been cleared. Since it has been cleared so I cannot see the same message again but only like this for now (nothing happened if I press BOOT button now)
I have reinstalled Arduino IDE with all new libraries including only newest Blynk (1.0.1) then open the example. So this example is from Newest Blynk 1.0.1 lib, not from previous Blynk lib.
The device is now awaiting provisioning.
Open the app and hit the three horizontal lines in the top right of the screen then + Add Device.
Follow the on-screen instructions and the device will connect and appear in your app and web console (provided you enter the correct WiFi credentials).
Yes, of course I have follow your steps so that in the serial log, it shows all steps with info about my Wifi SSID and Password provided. I have done these steps successfully for my ESP8266 and previous Blynk rev. (1.0.0) without any issue.
I have erased my ESP32 Dev board with esptool and still received message as below after selecting my Wifi SSID (VNNO) and entering password (I changed the password in the text below for security reason). Any thing that I should do next? Thanks again for your help so far.
Show me where youve posted your serial monitor output which says that it has detected the button being pressed, and 10 seconds later clears the credentials andreboots the device and puts it into provisioning mode. I can’t see this.
The board you say you’ve ordered is a WROOM and the board type you’ve un-commented is for a WROVER board, which has a button on GPIO15 and RGB LEDs on pins 0, 2 & 4 in the standard Settings.h file…