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)
-
I could not verify on the DASHBOARD that the Device (8266) was online
-
There is no guidance on how to reconfigure the ESP on the app once changed a name.
-
Where is the AUTHENTICATION TOKEN…?! There is too much documentation with the legacy version…
-
On the Dashboard “DEVICE NAME” and “TEMPLATE NAME” are mixed up especially in the METADATA Tab…
-
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