   wifi_set_phy_mode(PHY_MODE_11N);
   WiFi.mode(WIFI_STA);
   wifi_station_connect();
+  WiFi.config(ip_static, ip_gateway, ip_subnet, ip_dns);
   WiFi.begin(ssid, password);
-  WiFi.config(IPAddress(ip_static), IPAddress(ip_gateway), IPAddress(ip_subnet), IPAddress(ip_dns));
+  //WiFi.config(IPAddress(ip_static), IPAddress(ip_gateway), IPAddress(ip_subnet), IPAddress(ip_dns));
   WiFi.hostname("esp-solar");
 
   lcd.clear();

// esp12 4M / 3M flash / esp-solar / 160MHz
/*
  gopro wifi : https://github.com/KonradIT/goprowifihack
  twitter api : https://dev.twitter.com/rest/reference/post/media/upload

void wifi_connect()
{

#define IPSET_STATIC  { 192, 168, 10, 60 }
#define IPSET_GATEWAY { 192, 168, 10, 1 }
#define IPSET_SUBNET  { 255, 255, 255, 0 }
#define IPSET_DNS     { 192, 168, 10, 1 }

  IPAddress ip_static = IPSET_STATIC;
  IPAddress ip_gateway = IPSET_GATEWAY;
