diff --git a/lib/BLEOTA b/lib/BLEOTA index 8d5b663..7f8c320 160000 --- a/lib/BLEOTA +++ b/lib/BLEOTA @@ -1 +1 @@ -Subproject commit 8d5b663c785cabd0c80bae1580474ee61eb76792 +Subproject commit 7f8c320b5adda95a98b770c32a845a2f3c04e5fe diff --git a/src/main.cpp b/src/main.cpp index 7fac57e..cf12805 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -40,7 +40,7 @@ void setup() { pServer = BLEDevice::createServer(); pServer->setCallbacks(new ServerCallbacks()); - BLEota.begin(pServer); + BLEota.begin(pServer, "1.0.2"); BLEAdvertising* pAdvertising = BLEDevice::getAdvertising(); pAdvertising->setScanResponse(true); @@ -59,4 +59,5 @@ void loop() { digitalWrite(LED, !digitalRead(LED)); lastBlink= millis(); } + BLEota.loop(); } \ No newline at end of file