[1644] Connecting to blynk.cloud:80 [1972] Invalid auth token

#define BLYNK_PRINT Serial
#define BLYNK_TEMPLATE_ID           "TMPLUbWIVa-J"
#define BLYNK_DEVICE_NAME           "project1"
#define BLYNK_AUTH_TOKEN            "Your Auth Token"

#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>
char auth[] = BLYNK_AUTH_TOKEN;
char ssid[] = "Kerja80_Maxis";
char pass[] = "Hyperjackie12#";
void setup() {

Serial.begin(115200);

  Blynk.begin(auth, ssid, pass);
}

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

Serial monitor
ets Jul 29 2019 12:21:46

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1344
load:0x40078000,len:13864
load:0x40080400,len:3608
entry 0x400805f0
[11] Connecting to Kerja80_Maxis
[1178] Connected to WiFi
[1178] IP: 192.168.0.230
[1178] 
    ___  __          __
   / _ )/ /_ _____  / /__
  / _  / / // / _ \/  '_/
 /____/_/\_, /_//_/_/\_\
        /___/ v1.1.0 on ESP32

 #StandWithUkraine    https://bit.ly/swua


[1188] Connecting to blynk.cloud:80
[1458] Invalid auth token ```

Please edit your post, and add triple backticks ``` before and after your whole sketch.

1 Like

Should be at the top of your sketch. The first lines.

#define BLYNK_TEMPLATE_ID "TMPLUbWIVa-J"
#define BLYNK_DEVICE_NAME "project1"
#define BLYNK_AUTH_TOKEN "Your Auth Token"
#define BLYNK_PRINT Serial


#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>
char auth[] = BLYNK_AUTH_TOKEN;
char ssid[] = "Kerja80_Maxis";
char pass[] = "Hyperjackie12#";
void setup() {

Serial.begin(115200);

  Blynk.begin(auth, ssid, pass);
}

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

still same problem

What Blynk library version are you using?
It will tell you this in the serial monitor at the bottom of the Blynk logo.

Pete.

Are you sure that the authentication token in your sketch matches the one in the device information tab ?
Have you tried a different one ?

thanks , it worked for now

1 Like