These are chat archives for esp8266/Arduino

14th
Nov 2016
Rohit Yermalkar
@romuye123
Nov 14 2016 13:57
if (WiFi.status() == WL_CONNECTED){
Serial.print("Connected to WIFI");
}
what would be the code to check if esp8266 is connected to internet ?
Me No Dev
@me-no-dev
Nov 14 2016 15:20
:D define internet :D
WiFiClient client;
if(client.connect("google.com",80)){
  //you have internet
  client.close();
}
Martin Ayotte
@martinayotte
Nov 14 2016 15:26
@me-no-dev , any hints for esp8266/Arduino#2351 ?
Me No Dev
@me-no-dev
Nov 14 2016 15:29
using more than 4MB maybe you should set to 1MB then extend SPIFFS after that, but OTA presumes that SPIFFS is before esp config blocks and counts that space. Best probably to leave stuff alone at 4MB/3MB SPIFFS and then add another SPIFFS partition after the 4M mark
Martin Ayotte
@martinayotte
Nov 14 2016 15:31
@me-no-dev , Ok ! I will investigate that path ! Thanks !
Michael Miller
@Makuna
Nov 14 2016 19:33
@romuye123 I know many computer OS's use being able to resolve a internet name to address; so basically checking if a DNS servers are accessible.
Clemens Kirchgatterer
@everslick
Nov 14 2016 20:18
xtensa-lx106-elf-c++ --version
xtensa-lx106-elf-c++ (crosstool-NG 1.20.0) 4.8.2
so no C++14 i guess