I am facing issues while trying to get my device online.
The program gets compiled and uploaded without any errors. But, I do not see anything in my serial monitor and the device status is also offline in Blynk console (Desktop) and Blynk App(Android).
Please help me out here
Software and Hardware details-
Platform IO IDE
ESP32 with WiFi
Android 10
Blynk server - blynk.cloud
Blynk Library version 1.0.1
/* Comment this out to disable prints and save space */
#define BLYNK_PRINT Serial
/* Fill-in your Template ID (only if using Blynk.Cloud) */
#define BLYNK_TEMPLATE_ID "aaa"
#include <Arduino.h>
#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "zzz";
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "xxx";
char pass[] = "yyy";
void setup()
{
// Debug console
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);
}
void loop()
{
Blynk.run();
}
Personally, I prefer to set my debug serial rate to the native serial rate for your board, which in your case is probably 115200. It’s easy enough to find out what your board’s native serial rate is by pressing the RST button and observing the serial monitor output. If you see the boot message from the board then you have selected the correct baud rate…
By using the same baud rate for your debug messages, you can see if there is an issue that the board is reporting that is preventing it getting to the point where it configures your serial port to the lower baud rate in the void setup.
BTW, this is wrong…
The two correct options are blynk-cloud.com for the Legacy cloud servers or blynk.cloud for the new IoT cloud servers (which you are using).