Problem: Blynk sketch won’t run / serial monitor won’t output
until after manual reset (=on board button pressed).
When run the Blink example, with additional “Serial.print (“Blynk”);”
line into the Arduino Blink example get spontaneous serial monitor output with each 1 sec flash of LED.
I take this to mean the board can still do serial monitor output without reset.
MH ET Live ESP32 MiniKit (But also same problem if ESP32 DevKit used)
New token generated by Blynk legacy app on iphone 7 included in sketch
Intended to connect iphone with legacy Blynk app by WiFi.
Get’s a ping after reset but still no connection shown on phone
Code
/***********************************************************
**
* put legacy auth token in this 16/3/22
Download latest Blynk library here:
https://github.com/blynkkk/blynk-library/releases/latest
Blynk is a platform with iOS and Android apps to control
Arduino, Raspberry Pi and the likes over the Internet.
You can easily build graphic interfaces for all your
projects by simply dragging and dropping widgets.
Downloads, docs, tutorials: http://www.blynk.cc
Sketch generator: http://examples.blynk.cc
Blynk community: http://community.blynk.cc
Follow us: http://www.fb.com/blynkapp
http://twitter.com/blynk_app
Blynk library is licensed under MIT license
This example code is in public domain.
*************************************************************
This sketch shows how to read values from Virtual Pins
App project setup:
Slider widget (0...100) on Virtual Pin V1
*************************************************************/
/* 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 "your template here "
/* %%%%Take out the ethernet libs
#include <SPI.h>
#include <Ethernet.h>
#include <BlynkSimpleEthernet.h>
*/
//Put in the WiFi libs
#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "VeresiPhone";
char pass[] = "xxxxx";
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "xxxxxxxxxxx"; //New token for Legacy Blynk;
// in Blynk app writes values to the Virtual Pin V1
BLYNK_WRITE(V1)
{
int pinValue = param.asInt(); // assigning incoming value from pin V1 to a variable
Serial.print ("V1 value is ");
Serial.println(pinValue); // print the value
// process received value
}
void setup()
{
// Debug console
Serial.begin(115200);
Blynk.begin(auth, ssid, pass);
}
void loop()
{
Blynk.run();
}
No serial output after upload and start serial monitor
Below, Serial monitor output after manual reset of on board button;
23:52:53.798 -> ets Jun 8 2016 00:22:57
23:52:53.798 ->
23:52:53.798 -> rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
23:52:53.798 -> configsip: 0, SPIWP:0xee
23:52:53.798 -> clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
23:52:53.798 -> mode:DIO, clock div:1
23:52:53.798 -> load:0x3fff0018,len:4
23:52:53.798 -> load:0x3fff001c,len:1044
23:52:53.798 -> load:0x40078000,len:10124
23:52:53.798 -> load:0x40080400,len:5856
23:52:53.798 -> entry 0x400806a8
23:52:54.031 -> [28] Connecting to VeresiPhone
23:52:56.687 -> [2652] Connected to WiFi
23:52:56.687 -> [2652] IP: 172.20.10.12
23:52:56.687 -> [2653]
23:52:56.687 -> ___ __ __
23:52:56.687 -> / _ )/ /_ _____ / /__
23:52:56.687 -> / _ / / // / _ \/ '_/
23:52:56.687 -> /____/_/\_, /_//_/_/\_\
23:52:56.687 -> /___/ v1.0.1 on ESP32
23:52:56.687 ->
23:52:56.687 -> [2659] Connecting to blynk-cloud.com:80
23:52:57.341 -> [3327] Ready (ping: 303ms).
I have tried to be concise, but if you need anything else please respond.
Cheers
Vere