diff --git a/lib/BLEOTA b/lib/BLEOTA index bf21b61..361424d 160000 --- a/lib/BLEOTA +++ b/lib/BLEOTA @@ -1 +1 @@ -Subproject commit bf21b6180372d086df030221dffec9757af46e41 +Subproject commit 361424ded32a10b6e2e6ee9353acf537337f8387 diff --git a/src/main.cpp b/src/main.cpp index b660157..e65e48a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,13 +1,27 @@ #include +#include +#include +#include +#include #include "pins.h" #define BLINKRATE 500 +#define BLE_SERVER_NAME "Software Release" long lastBlink = 0; +BLEServer* pServer = NULL; + + void setup() { pinMode(LED, OUTPUT); + + BLEDevice::init(BLE_SERVER_NAME); + + pServer = BLEDevice::createServer(); + + BLEota.begin(pServer); } void loop() {