Home automation using esp8266 and blynk

I am using a esp8266 for home automation through wifi. But I always need to keep my phone connected to internet while using blynk. We are operating the esp through wifi so we need internet connection?

Is there any way with out internet connection I can operate esp. ?

Are you using the Blynk cloud servers, or a local server?
Is the problem that your ESP stops working without an internet connection (because you’re using the blocking Blynk.begin command, or something else?

Maybe you could try to explain the scenario more clearly?


i am using this code in node mcu

#define BLYNK_PRINT Serial

#include <ESP8266WiFi.h>


#include <BlynkSimpleEsp8266.h>



char auth[] = "YourAuthToken";


// Your WiFi credentials.


// Set password to "" for open networks.


char ssid[] = "YourNetworkName";


char pass[] = "YourPassword";


void setup()




// Debug console




Blynk.begin(auth, ssid, pass);


Blynk.syncAll(); //This will sync the last state of your device




void loop()







can't we use blynk app inside our phone as a local server? so we do not need internet connection ?

@biswajijei02 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:


Did it . Can you tell me how to use Blynk app and a esp with out internet connectivity with only wifi.

Sorry this is an IoT app. So that is the whole point is internet access.

You could set-up a local Blynk server inside your own network.


can you plz show me a link or any doc for this ? local Blynk server