Different blink rate for demonstration
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
#include "pins.h"
|
#include "pins.h"
|
||||||
|
|
||||||
#define BLINKRATE 500
|
#define BLINKRATE 2000
|
||||||
#define BLE_SERVER_NAME "Software Release"
|
#define BLE_SERVER_NAME "Software Release"
|
||||||
|
|
||||||
unsigned long lastBlink = 0;
|
unsigned long lastBlink = 0;
|
||||||
@@ -40,7 +40,7 @@ void setup() {
|
|||||||
pServer = BLEDevice::createServer();
|
pServer = BLEDevice::createServer();
|
||||||
pServer->setCallbacks(new ServerCallbacks());
|
pServer->setCallbacks(new ServerCallbacks());
|
||||||
|
|
||||||
BLEota.begin(pServer, "1.0.4");
|
BLEota.begin(pServer, "1.0.5");
|
||||||
|
|
||||||
BLEAdvertising* pAdvertising = BLEDevice::getAdvertising();
|
BLEAdvertising* pAdvertising = BLEDevice::getAdvertising();
|
||||||
pAdvertising->setScanResponse(true);
|
pAdvertising->setScanResponse(true);
|
||||||
@@ -59,4 +59,4 @@ void loop() {
|
|||||||
lastBlink= millis();
|
lastBlink= millis();
|
||||||
}
|
}
|
||||||
BLEota.loop();
|
BLEota.loop();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user