Esp32 blynk problem

Hello every one

I m trying to put my project in place but still unsuccesfull.

I have read so many tutotorials and videos and still no luck .

I have connectedmy my esp 32 and uploaded an example from blynk page .Then added & created an account on blynk ,next managed to create a small widget project with a led .Finally got to the point where i cant go any further .when trying to connect to my blynk ap it says (wasnt off line ).I dont really understand what to do and how to find out if I`ve been connected to blynk app ? How to diagnose or verify it ?.

Im not __IT specialist therefore need a bit more patient :slight_smile: .
Tried even to connect to my own local server but same story / (wasnt online yet ).

Please help gain more clarrifictaion about how to diagnose problems and learn more please .

Is this really what you did, in this sequence?
If so then it would be impossible to upload a sketch that contains your Blynk Auth code, as this requires you to create your Blynk account first.

Your best troubleshooting/debugging tool is the the serial monitor. What does it show?

Pete.

Hi Pete

Thank you for your quick respond , i think its not the sequence . I think I`ve started of blink 1st .

There is monitor scan .

Hoping to get get it solved by you .

Thnak you in advance Pete .

Regards

Czarek

Pete

Here is my sketch attached

And i assume that in section ssid need to use my wifi network + pass - password to it ??.

When i tried & still trying to connect via my local server i have the same problem . So if you`ll be happy to help my with solving and understanding that matter ill be extremally gratefull .

Screenshots are of no real use.
Please copy/paste code and serial monitor output and paste between triple backticks, which look like this:
```

Pete.

Hi Pete

[9749] Invalid auth token
ets Jun  8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1216
ho 0 tail 12 room 4
load:0x40078000,len:9720
ho 0 tail 12 room 4
load:0x40080400,len:6352
entry 0x400806b8
Connecting to VM3490241
.......ets Jun  8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1216
ho 0 tail 12 room 4
load:0x40078000,len:9720
ho 0 tail 12 room 4
load:0x40080400,len:6352
entry 0x400806b8
Connecting to VM3490241
.WiFi connected
[618] Connecting to VM3490241
[620] Connected to WiFi
[620] IP: 192.168.0.42
[620] 
    ___  __          __
   / _ )/ /_ _____  / /__
  / _  / / // / _ \/  '_/
 /____/_/\_, /_//_/_/\_\
        /___/ v0.6.1 on ESP32

[628] Connecting to blynk-cloud.com:80
[1160] Invalid auth t```

The “Invalid Auth token” message means that the Auth token you’ve entered into your sketch isn’t correct.
Did you copy/paste it from your email and ensure that there weren’t any leading/trailing spaces?

Pete.

Pete

Ihave noticed that what youve mentioned but am 100% sure that it was copied /paste from email and can`t see any spaces missing or anything .like that .

Regards

Well, that’s the source of your issue. As you’ve not shared your Auth code then I can’t check it.

Pete.

No problem Pete .

“Sgqi8CE1TwNDnE74BxCPBL5MFuQyJFZM”.

Here you are please .
I can always generate new one whenever find solution .

Okay, that’s a valid token for the Frankfurt server, which is your nearest Blynk server.

Try changing your Blynk.begin command to this:

Blynk.begin(auth, ssid, pass, IPAddress(139,59,206,133), 8080);

Pete.

Pete
dont get me wrong, but i dont know where to change it ?? in my Blynk app ? or ??

Regards

In your sketch.
If you’d posted the code rather than a screenshot then I’d have pointed-out where in the sketch.

Pete.

Pete
i must have say that you are an awesome person :slight_smile: you`ve just helped me sole my problem and finally connect to that lovely platform .

I will have another request , probably tomorrow or an other day . Ill be trying to connect via my local server so if you could help or assist me once again Ill be extremely grateful.

Thank you very much Pete .

Regards

Czarek