Hardware
Hardware: ESP-8266 Wemos D1 Mini
Description
Problem description
Heartbeat timeout
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <WiFiClient.h>
char auth[] = "9e3f495xxxxx";
char ssid[] = "xxxxx"; //SSID Wi-Fi
char pass[] = "xxxxx"; //PSW Wi-Fi
WiFiServer server(80);
IPAddress IP(192,168,4,15);
IPAddress mask = (255, 255, 255, 0);
void setup() {
Serial.begin(115200);
WiFi.mode(WIFI_AP_STA);
Blynk.begin(auth, ssid, pass);
WiFi.softAP("Wemos_AP", "Wemos_comm");
WiFi.softAPConfig(IP, IP, mask);
server.begin();
}
void loop()
{
Blynk.run();
}
I can’t connect blynk to wemos when I use Wifi.Mode(WIFI_AP_STA).
The issue below.
[607] Connected to WiFi
[607] IP: 192.168.1.114
[607]
___ __ __
/ _ )/ /_ _____ / /__
/ _ / / // / _ / '/
///_, /////_
/__/ v0.5.0 on NodeMCU
[674] Connecting to blynk-cloud.com:8442
[2353] Ready (ping: 48ms).
Server started.
IP: 192.168.4.15
MAC:2E:3A:E8:43:B7:2B
[18708] Heartbeat timeout
[23425] Connecting to blynk-cloud.com:8442
[28426] Connecting to blynk-cloud.com:8442
[33427] Connecting to blynk-cloud.com:8442
Any idea?