I’ve been creating a new template and a new device using that template. But no matter what I try, the device remains in Offline itself. I double checked the auth token in the code. No errors in the code. How can I turn the device to Online. I’ll give my code also just in case. I included so many libraries to avoid any errors in the code.
#define BLYNK_TEMPLATE_ID "xxx"
#define BLYNK_TEMPLATE_NAME "xxx"
#include <ArduinoWiFiServer.h>
#include <BearSSLHelpers.h>
#include <CertStoreBearSSL.h>
#include <ESP8266WiFi.h>
#include <ESP8266WiFiAP.h>
#include <ESP8266WiFiGeneric.h>
#include <ESP8266WiFiGratuitous.h>
#include <ESP8266WiFiMulti.h>
#include <ESP8266WiFiSTA.h>
#include <ESP8266WiFiScan.h>
#include <ESP8266WiFiType.h>
#include <WiFiClient.h>
#include <WiFiClientSecure.h>
#include <WiFiClientSecureBearSSL.h>
#include <WiFiServer.h>
#include <WiFiServerSecure.h>
#include <WiFiServerSecureBearSSL.h>
#include <WiFiUdp.h>
#include <Servo.h>
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#define BLYNK_FIRMWARE_VERSION "0.1.0"
#define BLYNK_PRINT Serial
#define USE_NODE_MCU_BOARD
//#include "BlynkEdgent.h"
Servo servo;
char auth[] = "-";//Enter your Blynk auth token
char ssid[] = "c";//Enter your WIFI name
char pass[] = "d";//Enter your WIFI password
BLYNK_WRITE(V1){
int s0 = param.asInt();
servo.write(s0);
Blynk.virtualWrite(V0, s0);
}
void setup() {
Serial.begin(9600);
servo.attach(D7);
Blynk.begin (auth, ssid, pass, "blynk.cloud", 80);
}
void loop() {
Blynk.run();
}```