Added ota hostname

This commit is contained in:
Nis Wechselberg 2017-09-26 00:11:17 +02:00
parent b32b5dbdee
commit 001219c80e
11 changed files with 329 additions and 16 deletions

View file

@ -2,6 +2,9 @@
const char* ssid = "http://kiel.freifunk.net/";
const char* password = "";
// OTA Hostname
const char* ota_hostname = "BenQ";
// MQTT Broker
const char* mqtt_server = "broker.mqtt-dashboard.com";

View file

@ -94,7 +94,7 @@ void setup_wifi() {
Serial.print("My IP address: ");
Serial.println(WiFi.localIP());
}
ArduinoOTA.setHostname("esp8266-BenQ");
ArduinoOTA.setHostname(ota_hostname);
ArduinoOTA.begin();
}