Qrome - Added hostname to OTA listing

pull/7/head
Chrome Legion 2018-05-24 19:28:51 -07:00
parent d51bad9a73
commit 70e0d4ec64
1 changed files with 3 additions and 2 deletions

View File

@ -27,9 +27,9 @@ SOFTWARE.
#include "Settings.h" #include "Settings.h"
#define VERSION "1.3" #define VERSION "1.4"
#define HOSTNAME "ESP8266-" #define HOSTNAME "OctoMon-"
#define CONFIG "/conf.txt" #define CONFIG "/conf.txt"
/* Useful Constants */ /* Useful Constants */
@ -222,6 +222,7 @@ void setup() {
else if (error == OTA_RECEIVE_ERROR) Serial.println("Receive Failed"); else if (error == OTA_RECEIVE_ERROR) Serial.println("Receive Failed");
else if (error == OTA_END_ERROR) Serial.println("End Failed"); else if (error == OTA_END_ERROR) Serial.println("End Failed");
}); });
ArduinoOTA.setHostname((const char *)hostname.c_str());
ArduinoOTA.begin(); ArduinoOTA.begin();
} }