So below is my code which i was going to use for a door lock in my house , below is the code,
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <DNSServer.h>
#include <ESP8266WebServer.h>
#include <WiFiManager.h>
#include <EEPROM.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "dfe6363f9e624390ad666d8048f71c6b";
// Your WiFi credentials.
// Set password to "" for open networks.
/*char ssid[] = "Freedom";
char pass[] = "pajik@1234";*/
void setup()
{
EEPROM.begin(512);
// Debug console
Serial.begin(9600);
WiFiManager wifiManager;
wifiManager.resetSettings();
wifiManager.autoConnect("NodeMcu");
Serial.println("connected.....");
pinMode(LED_BUILTIN,OUTPUT);
Blynk.begin(auth,WiFi.SSID().c_str(),WiFi.psk().c_str(), IPAddress(xx,xxx,xx,xx), 8080);
}
void loop()
{
Blynk.run();
}
This code uplaods successfully and it does connects to my wifi as well , but it says it keeps on connecting to my local server but never connects. anyone knows the asnwer for this issue
Is this what it actually says or did you mask it?? You know no one can access your LAN IP, so safe even to broadcast, as you just did with the NodeMCU’s IP
Anyhow, it is saying the correct IP? And what port are you using?
No , that’s my google cloud IP address that’s why i used those signs , anyways the port i used in the google cloud is 9443 , for the hardware i used 8080 … And the IP address which is node mcu is trying to connect is correct as well.