From 66cd30fa80400f1f2163d420a1184f6174437ed3 Mon Sep 17 00:00:00 2001 From: Gregg Date: Wed, 17 Feb 2021 08:54:29 -0600 Subject: [PATCH] Small tweak to diagnostic message when OTA is started --- src/HomeSpan.cpp | 4 ++-- src/src.ino | 13 +++++++------ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/HomeSpan.cpp b/src/HomeSpan.cpp index 4c30e43..637aec2 100644 --- a/src/HomeSpan.cpp +++ b/src/HomeSpan.cpp @@ -483,14 +483,14 @@ void Span::checkConnect(){ }); ArduinoOTA.begin(); - Serial.print("Starting OTA: "); + Serial.print("Starting OTA Server: "); Serial.print(displayName); Serial.print(" at "); Serial.print(WiFi.localIP()); Serial.print("\nAuthorization Password: "); Serial.print(otaAuth?"Enabled\n\n":"DISABLED!\n\n"); } else { - Serial.print("\n*** Warning: Can't enable OTA - Partition table used to compile this sketch is not configured for OTA.\n\n"); + Serial.print("\n*** Warning: Can't start OTA Server - Partition table used to compile this sketch is not configured for OTA.\n\n"); } } diff --git a/src/src.ino b/src/src.ino index 122b785..c2ed9eb 100644 --- a/src/src.ino +++ b/src/src.ino @@ -11,14 +11,14 @@ void setup() { homeSpan.setLogLevel(1); // homeSpan.setHostNameSuffix(""); - homeSpan.setPortNum(1200); - homeSpan.setMaxConnections(6); + homeSpan.setPortNum(1201); +// homeSpan.setMaxConnections(6); // homeSpan.setQRID("One1"); -// homeSpan.enableOTA(false); - homeSpan.setSketchVersion("Test 1.2.6"); + homeSpan.enableOTA(); + homeSpan.setSketchVersion("Test 1.3.0"); homeSpan.setWifiCallback(wifiEstablished); - homeSpan.begin(Category::Lighting,"HomeSpanTest"); + homeSpan.begin(Category::Lighting,"HomeSpan Lamp Server","homespanlamp"); new SpanAccessory(); // Begin by creating a new Accessory using SpanAccessory(), which takes no arguments @@ -41,8 +41,9 @@ void setup() { new Characteristic::On(); new Characteristic::Brightness(); new Characteristic::Name("Light 2"); - new Service::Switch(); + (new Service::Switch())->setPrimary(); new Characteristic::On(); + new Characteristic::Name("Switch 3"); } // end of setup()