Simple bluetooth low energy service, featuring three characteristics - two sliders and one button
Fork of Nucleo_BLE_DemoApp by
Diff: DemoAppService.cpp
- Revision:
- 0:866f2c528c01
- Child:
- 1:fd7adeffebbe
diff -r 000000000000 -r 866f2c528c01 DemoAppService.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/DemoAppService.cpp Sun May 10 15:41:38 2015 +0000 @@ -0,0 +1,21 @@ +#include "DemoAppService.h" + +const uint8_t DemoAppService::ServiceUUID[LENGTH_OF_LONG_UUID] = { + 0x6E, 0x40, 0x00, 0x10, 0xB5, 0xA3, 0xF3, 0x93, + 0xE0, 0xA9, 0xE5, 0x0E, 0x24, 0xDC, 0xCA, 0x9E, +}; + +const uint8_t DemoAppService::buttonCharacteristicUUID[LENGTH_OF_LONG_UUID] = { + 0x6E, 0x40, 0x00, 0x11, 0xB5, 0xA3, 0xF3, 0x93, + 0xE0, 0xA9, 0xE5, 0x0E, 0x24, 0xDC, 0xCA, 0x9E, +}; + +const uint8_t DemoAppService::slider1CharacteristicUUID[LENGTH_OF_LONG_UUID] = { + 0x6E, 0x40, 0x00, 0x12, 0xB5, 0xA3, 0xF3, 0x93, + 0xE0, 0xA9, 0xE5, 0x0E, 0x24, 0xDC, 0xCA, 0x9E, +}; + +const uint8_t DemoAppService::slider2CharacteristicUUID[LENGTH_OF_LONG_UUID] = { + 0x6E, 0x40, 0x00, 0x13, 0xB5, 0xA3, 0xF3, 0x93, + 0xE0, 0xA9, 0xE5, 0x0E, 0x24, 0xDC, 0xCA, 0x9E, +}; \ No newline at end of file