Problem with Blynk.config

why this part say invalid token Blynk.config(auth, "***.***.***.***", 8442);

[11589] Connecting to 192.168.1.5:8442
[11696] Invalid auth token
[16689] Connecting to 192.168.1.5:8442
[16706] Invalid auth token

But this part connected to server Blynk.begin(auth, ssid, pass, IPAddress(***.***.***.***), 8442);

[10073] Connecting to 192.168.1.5
[10121] Ready (ping: 6ms).

void loop()
{
  if(!Blynk.connected()){
      Blynk.connect();
  }
  Blynk.run();
  timer.run();
}

Have you made a WiFi connection when you call the Blynk.config() function?

Presumably you wouldn’t get the invalid token message without WiFi, unless it’s hard coded in the library.

char ssid[] = "Blynk-Test";
char pass[] = "0000000000";

i’m so confused .

Me too :slight_smile:

Perhaps remove all your real code and post a full sketch to identify the problem.

@Costas

uh God!

  char auth[] = "*";
  Blynk.config(auth, "192.168.1.5", 8442);
  Blynk.connect();
  delay(500);

it’s work :joy::sweat_smile::hushed:

1 Like