ESP does not connect to the template

Ok,
As a Newbie I have been following a youtube example from Saravnan Al
Which explained quite ok how to do a “getting Started”
I added a second line in the code to get the Analog reading and changed only the name of the templates and the Device name and could see that the connection between the Blynk.cloud and the App works (simply by toggeling a switch)

  1. I could not verify on the DASHBOARD that the Device (8266) was online

  2. There is no guidance on how to reconfigure the ESP on the app once changed a name.

  3. Where is the AUTHENTICATION TOKEN…?! There is too much documentation with the legacy version…

  4. On the Dashboard “DEVICE NAME” and “TEMPLATE NAME” are mixed up especially in the METADATA Tab…

  5. Funny thing is that I still get the WIFI SSID from the ESP-Blynk “first time” transmitted from the ESP…

Code:

// From example https://www.youtube.com/watch?v=UtzIe9noduU

// Fill-in information from your Blynk Template here
#define BLYNK_TEMPLATE_ID "TMPLRwKDdSO8"
#define BLYNK_DEVICE_NAME "FromYoutube"
#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_SPARKFUN_BLYNK_BOARD
#define USE_NODE_MCU_BOARD
//#define USE_WITTY_CLOUD_BOARD

#include "BlynkEdgent.h"

void potValue()
{
  int result = analogRead(4);
  Blynk.virtualWrite(V3,result);
}


BLYNK_WRITE(V0)
{
 if (param.asInt()==1)  {
  digitalWrite(5,HIGH); //LED ON
 }
 else{
  digitalWrite(5,LOW); //LED OFF
  }
}
BLYNK_CONNECTED(){
  Blynk.syncVirtual(V0);
}



void setup()
{
  Serial.begin(115200);
  delay(100);
  pinMode(5,OUTPUT);
  BlynkEdgent.begin();
  potValue();
}

void loop() {
  BlynkEdgent.run();
 
}

SERIAL MONITOR attached as pic

@Y3G please edit your post, using the pencil icon at the bottom, and add triple backticks at the beginning and end of your code so that it displays correctly.
Triple backticks look like this:
```

Pete.

@Y3G did you follow the provisioning process on the mobile?

1 Like

Hi PeteKnight,
The code I have added is the one from the example with very little additions.
Is it still “unreadable”?

It’s now correctly formatted.

Pete.

I did some lookup on the “provisioning process” and came by “accident” to this procedure, where I realized this is how it should work. I will post a detailed explanation on it with orderly pics and load it up as for the "documentary section"

Now I need to know why the data is not fetched/displayed

I’d suggest moving this line:
potValue();
out of void setup and calling it with a timer.

Adding some serial print statements would also help with your debugging.

Pete.