Hi, can someone tell me why I can’t add this ESP? The code compiles normal, but at the time of ADD via mobile I get the message cannot connect the module to the wi fi network, should I put my network credentials somewhere?
Thanks in advance to everyone who can help.
// Fill-in information from your Blynk Template here
#define BLYNK_TEMPLATE_ID "TMPLtwxr8sFQ"
#define BLYNK_DEVICE_NAME "TESTE"
#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
//#define USE_WEMOS_D1_MINI
#include "BlynkEdgent.h"
const byte Rele_1 = 0;
const byte Rele_2 = 2;
void setup()
{
Serial.begin(115200);
delay(100);
BlynkEdgent.begin();
pinMode (Rele_1, OUTPUT);
pinMode (Rele_2, OUTPUT);
}
void loop() {
BlynkEdgent.run();
}
BLYNK_WRITE (V0){
int state = param.asInt();
digitalWrite(Rele_1,state);
}
BLYNK_WRITE (V1){
int state = param.asInt();
digitalWrite(Rele_2,state);
}