blynkkk / blynk_Issues

6 stars 6 forks source link

Invalid auth token error #222

Open DhaaraaShaah opened 2 years ago

DhaaraaShaah commented 2 years ago

Hi, I'm looking for help with an "invalid auth token" message in the serial monitor after uploading an arduino sketch.

My serial monitor looks like this: 10:36:20.505 -> [759] Connecting to MELAB 10:36:23.279 -> [3554] IP: 192.168.1.100 10:36:23.319 -> [3555] 10:36:23.319 -> 10:36:23.359 -> / )/ /_ ___ / / 10:36:23.408 -> / / / // / \/ '/ 10:36:23.408 -> /____//_, /////_\ 10:36:23.455 -> // v0.6.1 on Arduino UNO WiFi Rev2 10:36:23.488 -> 10:36:23.488 -> [3683] Connecting to blynk-cloud.com:80 10:36:23.560 -> [3840] Invalid auth token 10:36:32.419 -> [12682] Connecting to blynk-cloud.com:80 10:36:32.490 -> [12769] Invalid auth token 10:36:41.433 -> [21682] Connecting to blynk-cloud.com:80 10:36:41.508 -> [21771] Invalid auth token 10:36:50.431 -> [30682] Connecting to blynk-cloud.com:80 10:36:50.546 -> [30800] Invalid auth token 10:36:59.410 -> [39682] Connecting to blynk-cloud.com:80 10:36:59.521 -> [39770] Invalid auth token 10:37:08.426 -> [48683] Connecting to blynk-cloud.com:80 10:37:08.515 -> [48760] Invalid auth token

And this is my code:

define BLYNK_PRINT Serial

define BLYNK_TEMPLATE_ID "TMPLegrAmyU3"

define BLYNK_DEVICE_NAME "Pimp my Blinds"

define BLYNK_AUTH_TOKEN "AuS*****"

include

include

include

// Your WiFi credentials. // Set password to "" for open networks. char ssid[] = "M"; char pass[] = "M****";

void setup() { Serial.begin(9600);

//Blynk.begin(BLYNK_AUTH_TOKEN, ssid, pass); // You can also specify server: Blynk.begin(BLYNK_AUTH_TOKEN, ssid, pass, "blynk-cloud.com", 80); //Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,100), 8080); }

void loop() { Blynk.run(); } I am using an older version of the Blynk libraries because the newer versions result in an error for the Arduino Uno Rev2. I would really appreciate any help on this! Let me know if anyone has any clarifying questions.

doom369 commented 2 years ago

blynk-cloud.com is blynk 1.0 host, you need to use the correct firmware with the correct host.

DhaaraaShaah commented 2 years ago

Do you know what the blynk 0.6.1 host is? I have also tried to use Blynk's new version, but I get a error that deals with some function called atoll() in the BlynkParam.h file I believe. I've seen people having the same issues around the internet, but have not found a solution that works for me, so if you have any idea on how to fix that or what the blynk 0.6.1 host, please let me know!