Hello,
I’m desperately trying to connect one of my small fantastic microcontrollers to the Blynk app. I’ve heard so much good about it, but until now it has been a disaster.
I’m trying to connect an Adafruit Feather HUZZAH with the simple Blynk example “NodeMCU” in the Arduino IDE. Im following this guide:
It connects to the Wifi with ease, but the “Invalid auth token” message haunts me!
I saw in another post, that sometimes there is “hidden” spaces before the Auth token, and it helped him, so i wrote the whole auth token in myself, but nothing. I’m using Blynk library version 1.0.1 and all else should be default.
First i tried a lot of times with my ESP8266-01. It got a lot of different errors, and i fought my way through them, only to get stoppet by the same message. “Invalid Auth token”. Over and over again. It puzzles me.
/* Fill-in your Template ID (only if using Blynk.Cloud) */
//#define BLYNK_TEMPLATE_ID "TMPLGs2iTlEw"
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "WjhEYjUd6kF0TYwGTD5KUnACrqqX1FaU";
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "PrettyFlyForAWIFI";
char pass[] = "********";
void setup()
{
// Debug console
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);
// You can also specify server:
//Blynk.begin(auth, ssid, pass, "blynk-cloud.com", 80);
//Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,100), 8080);
}
void loop()
{
Blynk.run();
}