Move alias to discovery to advoid doc race (#832)

This commit is contained in:
Darrell 2023-03-10 17:11:49 -05:00 committed by GitHub
parent 74d4c465f3
commit f05a1b199a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -215,7 +215,6 @@ bool Loop() {
pAdvertising->start();
Serial.println("Advertising HRM");
} else {
alias(Sprintf("iBeacon:e5ca1ade-f007-ba11-0000-000000000000-%hu-%hu", major, minor), "node:" + id, room);
pAdvertising->reset();
pAdvertising->setMaxInterval(3200);
pAdvertising->setMinInterval(1600);
@ -273,6 +272,8 @@ bool Command(String &command, String &pay) {
}
bool SendDiscovery() {
return sendButtonDiscovery("Enroll", EC_CONFIG);
return
alias(Sprintf("iBeacon:e5ca1ade-f007-ba11-0000-000000000000-%hu-%hu", major, minor), "node:" + id, room) &&
sendButtonDiscovery("Enroll", EC_CONFIG);
}
} // namespace Enrollment