Ble for smart sOlutions

Dependencies:   Adafruit_WS2801

Revision:
8:369b80cef5ae
Parent:
7:9cda1b0f25ae
Child:
9:92d861703f96
--- a/source/main.cpp	Mon May 20 13:20:35 2019 +0200
+++ b/source/main.cpp	Tue May 21 13:57:27 2019 +0200
@@ -20,8 +20,6 @@
 #include "ble/Gap.h"
 #include "GattCallbackParamTypes.h"
 #include "mbed.h"
-#include "Adafruit_WS2801/Adafruit_WS2801.h"
-
 #include "ColorService.h"
 #include "BleDeviceCentral.h"
 #include "BleDevicePeripheral.h"
@@ -47,7 +45,7 @@
 
 void blinkCallback(void)
 {
-    //TODO: Every 
+    //TODO: Every
     led1 = !led1; /* Do blinky on LED1 while we're waiting for BLE events */
     BLE &ble = BLE::Instance();
 
@@ -98,21 +96,17 @@
     return c;
 }
 
+
+
 int main()
 {
-    printf("\r\n CENTRAL \r\n\r\n");
-
-//    mystrip.begin();
-//    mystrip.show();
-//    colorServicePtr->updateColor(rainbow);//(int[]){16711680, 16711682, 16711680, 16711680, 16711680, 16711680, 16711680, 16711680, 16711680, 16711680, 16711680, 16711680, 16711680, 16711680, 16711680, 16711680, 16711680, 16711680, 16711680, 16711680, 16711680, 16711680});
-
     BLE& ble = BLE::Instance();
     events::EventQueue queue;
     printf(" Is filename capture enabled? \t\t");
 
-#if MBED_CONF_PLATFORM_ERROR_FILENAME_CAPTURE_ENABLED
+    #if MBED_CONF_PLATFORM_ERROR_FILENAME_CAPTURE_ENABLED
     printf(" Enabled filename capture");
-#endif
+    #endif
 
     BleDevicePeripheral peripheral(ble, queue);
     BleDeviceCentral central(ble, queue);
@@ -124,7 +118,7 @@
         peripheral.stop();
 
         printf("\r\n CENTRAL \r\n\r\n");
-        central.run(5000);
+        central.run(10000);
         central.stop();
 
     }