Added ota hostname
This commit is contained in:
parent
b32b5dbdee
commit
001219c80e
11 changed files with 329 additions and 16 deletions
|
@ -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";
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue