My BLYNK_PRINT Serial doesn't print any more (solved)

I am asking what could be the problem?
this is happening to me after a windows 10 update.

[250] Connecting to MYWIFI
[1253] Connected to WiFi
[1253] IP: 192.168.0.116
[1253] 
    ___  __          __
   / _ )/ /_ _____  / /__
  / _  / / // / _ \/  '_/
 /____/_/\_, /_//_/_/\_\
        /___/ v0.4.6 on NodeMCU

[5001] Connecting to

then it stops here.

sketch?
hardware?

all sketches
hardware NodeMCU

but the sketch otherwise works ok, only the debug is not working?

yes

you should try other sketch, without blynk, and see if you can print data via serial monitor to pc. (read some analog pin, or something)

OK I will Try.
What you suggest as sketch.

just a simple sketch, like this (do not connect anything to the board, just usb cable):

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

void loop()
{
  Serial.println(analogRead(A0));
  delay(10);
}

yes it is working fine

I tested again with blynk, same as before

ok. now upload your sketch what didn’t worked before, and try serial monitor again.
BUT do not connect anything (wires, sensors, etc) to the esp, except usb!

Same as before.

Starting
[19340] Connecting to MYWIFI
[20343] Connected to WiFi
[20343] IP: 192.168.0.116
[20343] 
    ___  __          __
   / _ )/ /_ _____  / /__
  / _  / / // / _ \/  '_/
 /____/_/\_, /_//_/_/\_\

hm, i have no other ideas…
but if you do not mind, please post your sketch here!

@Dmitriy, can you take a look into this?

Submitted to https://github.com/blynkkk/blynk-library/issues/290

@Dmitriy
@wanek
today I test my sketch on “blynk.cloud-com” and every thing returned to normal.
i think the problem is in the local server.

Neeeed innnpuuut…

What version of Local Server?

You mentioned this happened after a Windows 10 update… did you mean updating to Windows 10, or you already had 10, and there was just a patch?

Is you Local Server installed ON the PC that is running Windows 10? or on something else like an RPi, etc?

When this issue is happening, is your NodeMCU plugged in with USB and using the IDE monitor, or are you using some other method of seeing the Serial Prints.

And again… can we see this sketch you are testing with?

@Gunner
1- Local Server? 0.23.0, 0.23.1 ,0.23.2 almost all
2-already had windows 10, and this was a windows update.
3-my Local Server is installed ON the PC that is running Windows 10.
4-NodeMCU was plugged in with USB Com 3 and using the IDE monitor.

something strange happened now
i am using same auth token for both local and cloud server.
now when i changed the token with another one, serial print works .
I really don’t understand what is the relation of serial print and auth token.
when i change it back, it stops again.
I am still testing.

I need to add
even i test with a very simple sketch with the same auth token it will not work.

Since you have managed to install Local Server, then I guess you realise that it and Cloud are completely separate… even if using the same login and password.

The auth comes from the server, passed through the app (and is also linked to that specific project - and must match with auth in sketch). Thus even a cloned project running exactly same process and MCU will require one auth for Cloud and another for Local.

And what you have shown from your Serial monitor is what usually prints before Blynk.begin()… usually followed by repeating connecting msgs until it actually does connect.

to change from cloud to local i just uncomment the first line in my sketch.

 //Blynk.begin(auth, ssid, pass, server);
Blynk.begin(auth, ssid, pass);

then comment the second one.

But that alone assumes the same auth code… that will NOT work as both servers generate and track their own… no synchronization between them.

You must also change auth codes to match what each server has generated for that project… otherwise, no connection (and no further prints… or anything really).