From 965bdc71b786fa627870e55eb3c62e3a33e70a76 Mon Sep 17 00:00:00 2001 From: Gregg Date: Sat, 4 Nov 2023 09:36:31 -0500 Subject: [PATCH] Add MAC Address output to RemoteDevice.ino Prompts user with reminder of which MAC Address to use in Main Device. --- .../RemoteSensors/RemoteDevice/RemoteDevice.ino | 3 ++- src/src.ino | 13 ++++++++----- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/examples/Other Examples/RemoteSensors/RemoteDevice/RemoteDevice.ino b/examples/Other Examples/RemoteSensors/RemoteDevice/RemoteDevice.ino index 9859362..7dba05b 100644 --- a/examples/Other Examples/RemoteSensors/RemoteDevice/RemoteDevice.ino +++ b/examples/Other Examples/RemoteSensors/RemoteDevice/RemoteDevice.ino @@ -57,7 +57,8 @@ void setup() { Serial.begin(115200); delay(1000); - Serial.printf("Starting\n\n"); + Serial.printf("\n\nThis is a REMOTE Device with MAC Address = %s\n",WiFi.macAddress().c_str()); + Serial.printf("NOTE: This MAC Address must be entered into the corresponding SpanPoint() call of the MAIN Device.\n\n"); // In the line below, replace the MAC Address with that of your MAIN HOMESPAN DEVICE diff --git a/src/src.ino b/src/src.ino index 457ccf3..2b30fe6 100644 --- a/src/src.ino +++ b/src/src.ino @@ -63,7 +63,7 @@ void setup() { // homeSpan.setControlPin(21); - homeSpan.setLogLevel(2).enableWebLog(20).setWebLogCallback(extraData); + homeSpan.setLogLevel(2).enableWebLog(500).setWebLogCallback(extraData); // homeSpan.reserveSocketConnections(10); // homeSpan.setApSSID("HS_Setup"); @@ -86,16 +86,19 @@ void setup() { new Characteristic::Identify(); new LED_Service(13); - homeSpan.autoPoll(); +// homeSpan.autoPoll(); + + for(int i=0;i<300;i++) + WEBLOG("Here is some text of a log file %d",i); } ////////////////////////////////////// void loop(){ -// homeSpan.poll(); -delay(10000); -Serial.println(millis()); + homeSpan.poll(); +//delay(10000); +//Serial.println(millis()); }