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?
Pete.
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
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);
Blynk.syncAll(); //This will sync the last state of your device
}
void loop()
{
Blynk.run();
}
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:
```
Pete.
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.
Pete.
can you plz show me a link or any doc for this ? local Blynk server