@Chirag1712 that’s not related to the syntax. You are either logging into the wrong server or simply have the wrong token. Take a new token and reflash etc but ensure you are correcting to the correct server.
Did you move the slider in the app from default Blynk server across right and enter your server IP / domain name?
Thanks for the prompt reply.
I just did that:- Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,100), 8443);
And now in the serial monitor instead of invalid token it keeps on printing the statement “Connecting to 192.168.1.100”
Remove “, 8443” and try again. It should be 8442 but it’s not required as it will default to the correct port unless you have changed the configuration of your server. Port 8443 is used but not in this call.
Yeah. I made the changes.
I refreshed the auth token.
It works with the both “,8442” and without it!
Thanks a lot @Costas! Great help and support!
Also now I am able to control the NodeMcu with the app. Even the serial monitor shows “Ready”. However the blynk-cloud.com/my_token/project shows invalid token
Also i had some doubts about controlling AC devices with my NodeMcu. Can I ask? Or shall i search for a different thread?
It should, 8442 is the default so it’s not needed. There are other defaults too, like not specifying a server when you want to use the awesome Blynk server
Well it will do because you are not using blynk-cloud.com, change to your server IP and if you have the server configured correctly the API will work.
Start a new thread giving as much details as possible. We control our AC units with Blynk.