BLYNK
HOME       📲 GETTING STARTED       📗 DOCS       ❓HELP CENTER       👉 SKETCH BUILDER

Blynk invalid token

Before creating the topic

  1. Search forum for similar topics
  2. Check http://docs.blynk.cc and http://help.blynk.cc/
  3. Add details :
    • Hardware model + communication type. For example: Arduino UNO with Ethernet Shield
    • Smartphone OS (iOS or Android) + version
    • Blynk server or local server
    • Blynk Library version
    • Add your sketch code. :point_up:Code should be formatted as example below.

Simply paste your code between ``` If you don’t format your code, your topic can be deleted by moderators.


void loop()
/*************************************************************
  Download latest Blynk library here:
    https://github.com/blynkkk/blynk-library/releases/latest

  Blynk is a platform with iOS and Android apps to control
  Arduino, Raspberry Pi and the likes over the Internet.
  You can easily build graphic interfaces for all your
  projects by simply dragging and dropping widgets.

    Downloads, docs, tutorials: http://www.blynk.cc
    Sketch generator:           http://examples.blynk.cc
    Blynk community:            http://community.blynk.cc
    Follow us:                  http://www.fb.com/blynkapp
                                http://twitter.com/blynk_app

  Blynk library is licensed under MIT license
  This example code is in public domain.

 *************************************************************
  This example runs directly on ESP8266 chip.

  Note: This requires ESP8266 support package:
    https://github.com/esp8266/Arduino

  Please be sure to select the right ESP8266 module
  in the Tools -> Board menu!

  Change WiFi ssid, pass, and Blynk auth token to run :)
  Feel free to apply it to any other example. It's simple!
 *************************************************************/

/* Comment this out to disable prints and save space */
#define BLYNK_PRINT Serial


#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "rQ1907mb6hd3jhk3fR9foeukSDNY2-1b";
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "DESKTOP-QSM11GA 7050";
char pass[] = "N32h,498";

void setup()
{
  // Debug console
  Serial.begin(115200);
Serial.print("TEMPRATURE = ");
Blynk.begin(auth, ssid, pass,80);
}

void loop()
{
  Serial.print("loop");
  Blynk.run();
}



20:24:22.914 -> [19314] Connecting to 144.31.0.0
20:24:29.290 -> [25661] Connecting to 144.31.0.0
20:24:35.617 -> [32002] Connecting to 144.31.0.0
20:24:41.945 -> [38339] Connecting to 144.31.0.0
20:24:48.320 -> [44678] Connecting to 144.31.0.0
20:24:54.647 -> [51017] Connecting to 144.31.0.0
20:25:00.975 -> [57357] Connecting to 144.31.0.0
20:25:07.303 -> [63693] Connecting to 144.31.0.0
20:25:13.677 -> [70040] Connecting to 144.31.0.0
20:25:48.771 -> [565] Connected to WiFi
20:25:48.771 -> [565] IP: 192.168.137.223
20:25:48.771 -> [565] 
20:25:48.771 ->     ___  __          __
20:25:48.771 ->    / _ )/ /_ _____  / /__
20:25:48.771 ->   / _  / / // / _ \/  '_/
20:25:48.771 ->  /____/_/\_, /_//_/_/\_\
20:25:48.771 ->         /___/ v1.0.0-beta.1 on NodeMCU
20:25:48.771 -> 
20:25:48.771 -> [572] Connecting to 80.0.0.0
20:25:54.958 -> [6737] Connecting to 80.0.0.0
20:26:01.193 -> [12973] Connecting to 80.0.0.0
20:26:07.521 -> [19317] Connecting to 80.0.0.0
20:26:13.850 -> [25659] Connecting to 80.0.0.0
20:26:20.225 -> [32002] Connecting to 80.0.0.0
20:26:26.551 -> [38340] Connecting to 80.0.0.0
20:26:32.871 -> [44682] Connecting to 80.0.0.0
20:26:39.246 -> [51030] Connecting to 80.0.0.0
20:26:45.576 -> [57373] Connecting to 80.0.0.0
20:26:51.905 -> [63720] Connecting to 80.0.0.0
20:26:58.268 -> [70072] Connecting to 80.0.0.0
20:27:04.625 -> [76410] Connecting to 80.0.0.0
20:27:10.976 -> [82749] Connecting to 80.0.0.0
20:27:17.308 -> [89097] Connecting to 80.0.0.0
20:27:23.646 -> [95437] Connecting to 80.0.0.0
20:27:29.976 -> [101777] Connecting to 80.0.0.0
20:27:36.340 -> [108118] Connecting to 80.0.0.0
20:27:42.573 -> [114363] Connecting to 80.0.0.0
20:27:48.855 -> [120631] Connecting to 80.0.0.0
20:27:55.028 -> [126832] Connecting to 80.0.0.0
20:28:01.252 -> [133051] Connecting to 80.0.0.0
20:28:07.610 -> [139395] Connecting to 80.0.0.0
20:28:13.948 -> [145736] Connecting to 80.0.0.0
20:28:20.256 -> [152075] Connecting to 80.0.0.0
20:28:26.613 -> [158412] Connecting to 80.0.0.0
20:28:32.968 -> [164757] Connecting to 80.0.0.0
20:28:39.282 -> [171094] Connecting to 80.0.0.0
20:28:45.647 -> [177434] Connecting to 80.0.0.0
20:28:51.987 -> [183775] Connecting to 80.0.0.0
20:28:58.316 -> [190114] Connecting to 80.0.0.0
20:29:04.550 -> [196335] Connecting to 80.0.0.0
20:29:09.960 -> [201754] Connecting to 80.0.0.0
20:29:14.938 -> [206754] Connecting to 80.0.0.0
20:29:21.113 -> [212914] Connecting to 80.0.0.0
20:29:27.417 -> [219202] Connecting to 80.0.0.0
20:29:33.724 -> [225537] Connecting to 80.0.0.0
20:29:40.065 -> [231879] Connecting to 80.0.0.0
20:29:46.413 -> [238226] Connecting to 80.0.0.0
20:29:52.771 -> [244564] Connecting to 80.0.0.0
20:29:59.106 -> [250905] Connecting to 80.0.0.0
20:30:05.429 -> [257246] Connecting to 80.0.0.0
20:30:11.789 -> [263584] Connecting to 80.0.0.0

Downgrade to 0.6.1

Pete.

1 Like

Down graded but the same thing repeats
09:26:31.196 → [4407] Connected to WiFi
09:26:31.196 → [4407] IP: 192.168.137.224
09:26:31.196 → [4407]
09:26:31.196 → ___ __ __
09:26:31.196 → / _ )/ /_ _____ / /__
09:26:31.196 → / _ / / // / _ / '/
09:26:31.196 → /
//_, /////_
09:26:31.196 → /
__/ v0.6.1 on NodeMCU
09:26:31.196 →
09:26:31.196 → [4413] Connecting to blynk-cloud.com:80
09:26:32.440 → [5657] Invalid auth token
09:26:40.182 → [13413] Connecting to blynk-cloud.com:80
09:26:40.390 → [13621] Invalid auth token

This auth token is indeed incorrect, it doesn’t exist on any of the three Blynk cloud servers.

Also, this syntax is incorrect…

It should be either:

Blynk.begin(auth, ssid, pass);

or:

Blynk.begin(auth, ssid, pass,"blynk-cloud.com",80);

although, as many ISPs block port 80, if you want to specify a port then you’d be better-off specifying port 8080 instead…

Blynk.begin(auth, ssid, pass,"blynk-cloud.com",8080);

Pete.

Yes thank you.
I used my local server token