Costas
11
@mars
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
char auth[] = "xxxxxxxxxxxxxxxx";
char ssid[] = "xxxxxxxxxx";
char password[] = "xxxxxxxxxxxx";
IPAddress server_ip (192, 168, 10, 229);
// Mac address should be different for each device in your LAN
byte arduino_mac[] = { 0xDE, 0xED, 0xBA, 0xFE, 0xFE, 0xED };
IPAddress arduino_ip ( 192, 168, 10, 20);
IPAddress dns_ip ( 8, 8, 8, 8);
IPAddress gateway_ip ( 192, 168, 10, 90);
IPAddress subnet_mask(255, 255, 255, 0);
void setup()
{
Serial.begin(115200);
Serial.println();
WiFi.config(arduino_ip, gateway_ip, subnet_mask);
WiFi.begin(ssid, password);
Blynk.config(auth);
while (Blynk.connect(1000) == false) {
}
}
void loop()
{
Blynk.run();
}