     delay(10);
     WiFi.mode(WIFI_STA);
     WiFi.begin(ssid, password);
+    WiFi.config(IPAddress(ip_static), IPAddress(ip_gateway), IPAddress(ip_subnet), IPAddress(ip_dns));
+
 
     int Attempt = 0;
     while (WiFi.status() != WL_CONNECTED) {

  Serial.println("going to sleep with rf");
  //system_deep_sleep_set_option(0);
  //system_deep_sleep(10000000);
  ESP.deepSleep(3000000, WAKE_RF_DEFAULT);
}

void rtc_count()

String clientName;
long lastReconnectAttempt = 0;
long lastMsg = 0;
int test_para = 1;
unsigned long startMills;

WiFiClient wifiClient;
