How do i preconfigure the SSID and password for blynk edgent?

I’m testing things out and cant handle the wifi that i need to congifure each time i do i reset. Where and how do i preconfigure Wifi to automaticly connect to selected wifi?

#if defined(BLYNK_AUTH_TOKEN)
    /* While Blynk.Edgent assigns Auth token, SSID and password
     * dynamically using the App, you can still pre-configure them.
     * Please use this FOR TESTING PURPOSES ONLY.
     */
    BLYNK_PARAM_KV("ssid" , BLYNK_WIFI_SSID)
    BLYNK_PARAM_KV("pass" , BLYNK_WIFI_PASS)
    BLYNK_PARAM_KV("auth" , BLYNK_AUTH_TOKEN)
#else
    BLYNK_PARAM_KV("ssid" , BLYNK_PARAM_PLACEHOLDER_64
                            BLYNK_PARAM_PLACEHOLDER_64
                            BLYNK_PARAM_PLACEHOLDER_64
                            BLYNK_PARAM_PLACEHOLDER_64)

Edgent comes with wifi provisioning feature. If you do not want that, then just use bare minimum sketch/code.

@Joel_Kvarnsmyr Please edit your post, using the pencil icon at the bottom, and add triple backticks at the beginning and end of your code so that it displays correctly.
Triple backticks look like this:
```

Copy and paste these if you can’t find the correct symbol on your keyboard.

Pete.

Yes i’m aware, and I want that in the end but now when testing i want to pre-configure. As it says in the code attached.

Thanks Pete!

I’ve never used this option, because TBH it’s so simple to provision the device via the app - and if do create a device manually so that you have an Auth token then you need to go back and delete that device later.

However, looking at the code, you’d need to add the following lines to the .ino file of your Edgent sketch, before the #include "BlynkEdgent.h" line…

#define BLYNK_WIFI_SSID  "your SSID here"
#define BLYNK_WIFI_PASS  "your password here"
#define BLYNK_AUTH_TOKEN "your Auth token here"

Pete.