Update src.ino

This commit is contained in:
Gregg 2021-09-18 13:59:36 -05:00
parent c67336ab57
commit 8b33f61464
1 changed files with 3 additions and 1 deletions

View File

@ -9,6 +9,8 @@ void setup() {
Serial.begin(115200); Serial.begin(115200);
homeSpan.setLogLevel(1); homeSpan.setLogLevel(1);
homeSpan.setStatusPin(5);
homeSpan.setControlPin(33);
homeSpan.setHostNameSuffix("-lamp1"); homeSpan.setHostNameSuffix("-lamp1");
homeSpan.setPortNum(1201); homeSpan.setPortNum(1201);
@ -21,7 +23,7 @@ void setup() {
new SpanUserCommand('d',"- My Description",userCom1); new SpanUserCommand('d',"- My Description",userCom1);
new SpanUserCommand('e',"- My second Description",userCom2); new SpanUserCommand('e',"- My second Description",userCom2);
homeSpan.enableAutoStartAP(); // homeSpan.enableAutoStartAP();
// homeSpan.setApFunction(myWiFiAP); // homeSpan.setApFunction(myWiFiAP);
homeSpan.begin(Category::Lighting,"HomeSpan Lamp Server","homespan"); homeSpan.begin(Category::Lighting,"HomeSpan Lamp Server","homespan");