Kris Scholte Lubberink
/
SSS_Ble
Ble for smart sOlutions
Diff: source/main.cpp
- Revision:
- 7:9cda1b0f25ae
- Parent:
- 6:ee9c86f06eae
- Child:
- 8:369b80cef5ae
--- a/source/main.cpp Mon May 20 09:55:38 2019 +0200 +++ b/source/main.cpp Mon May 20 13:20:35 2019 +0200 @@ -102,7 +102,6 @@ { printf("\r\n CENTRAL \r\n\r\n"); - //TODO: Make // 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}); @@ -115,15 +114,16 @@ printf(" Enabled filename capture"); #endif + BleDevicePeripheral peripheral(ble, queue); + BleDeviceCentral central(ble, queue); + while(1) { printf("\r\n PERIPHERAL \r\n\r\n"); - BleDevicePeripheral peripheral(ble, queue); - peripheral.run(60000); + peripheral.run(15000); peripheral.stop(); printf("\r\n CENTRAL \r\n\r\n"); - BleDeviceCentral central(ble, queue); central.run(5000); central.stop();