blynkkk / blynk-sketch-generator

This repository is for generating Blynk sketches.
https://examples.blynk.cc
MIT License
25 stars 25 forks source link

Incorrect Arduino UNO and ESP8266 Wifi connection code #75

Closed darkpanda08 closed 1 year ago

darkpanda08 commented 5 years ago

In the Blynk example generator for Arduino uno with esp8266 wifi module (https://examples.blynk.cc/?board=Arduino%20Uno&shield=ESP8266%20WiFi%20Shield&example=GettingStarted%2FBlynkBlink), the following code on compiling gives error as 'IPAddress' was not declared in the scope. Blynk.begin(auth, wifi, ssid, pass, IPAddress(192,168,1,100), 8080);

If the IP address is declares as a Character then used it works properly. char server[] = "IP_of_server";

Blynk.begin(auth, wifi, ssid, pass, server, 8080);