From 70e0d4ec6442e7e77474f6a6bfa904ad2d2752a6 Mon Sep 17 00:00:00 2001 From: Chrome Legion Date: Thu, 24 May 2018 19:28:51 -0700 Subject: [PATCH] Qrome - Added hostname to OTA listing --- printermonitor/printermonitor.ino | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/printermonitor/printermonitor.ino b/printermonitor/printermonitor.ino index 11e360d..0fbb79c 100644 --- a/printermonitor/printermonitor.ino +++ b/printermonitor/printermonitor.ino @@ -27,9 +27,9 @@ SOFTWARE. #include "Settings.h" -#define VERSION "1.3" +#define VERSION "1.4" -#define HOSTNAME "ESP8266-" +#define HOSTNAME "OctoMon-" #define CONFIG "/conf.txt" /* Useful Constants */ @@ -222,6 +222,7 @@ void setup() { else if (error == OTA_RECEIVE_ERROR) Serial.println("Receive Failed"); else if (error == OTA_END_ERROR) Serial.println("End Failed"); }); + ArduinoOTA.setHostname((const char *)hostname.c_str()); ArduinoOTA.begin(); }