Add MAC Address output to RemoteDevice.ino
Prompts user with reminder of which MAC Address to use in Main Device.
This commit is contained in:
parent
fc4b8a077b
commit
965bdc71b7
|
|
@ -57,7 +57,8 @@ void setup() {
|
||||||
Serial.begin(115200);
|
Serial.begin(115200);
|
||||||
delay(1000);
|
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
|
// In the line below, replace the MAC Address with that of your MAIN HOMESPAN DEVICE
|
||||||
|
|
||||||
|
|
|
||||||
13
src/src.ino
13
src/src.ino
|
|
@ -63,7 +63,7 @@ void setup() {
|
||||||
|
|
||||||
// homeSpan.setControlPin(21);
|
// homeSpan.setControlPin(21);
|
||||||
|
|
||||||
homeSpan.setLogLevel(2).enableWebLog(20).setWebLogCallback(extraData);
|
homeSpan.setLogLevel(2).enableWebLog(500).setWebLogCallback(extraData);
|
||||||
// homeSpan.reserveSocketConnections(10);
|
// homeSpan.reserveSocketConnections(10);
|
||||||
|
|
||||||
// homeSpan.setApSSID("HS_Setup");
|
// homeSpan.setApSSID("HS_Setup");
|
||||||
|
|
@ -86,16 +86,19 @@ void setup() {
|
||||||
new Characteristic::Identify();
|
new Characteristic::Identify();
|
||||||
new LED_Service(13);
|
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(){
|
void loop(){
|
||||||
// homeSpan.poll();
|
homeSpan.poll();
|
||||||
delay(10000);
|
//delay(10000);
|
||||||
Serial.println(millis());
|
//Serial.println(millis());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue