Simple bluetooth low energy service, featuring three characteristics - two sliders and one button
Fork of Nucleo_BLE_DemoApp by
DemoAppService.cpp@0:866f2c528c01, 2015-05-10 (annotated)
- Committer:
- berlingeradam
- Date:
- Sun May 10 15:41:38 2015 +0000
- Revision:
- 0:866f2c528c01
- Child:
- 1:fd7adeffebbe
Initial commit - 2 sliders 1 button
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
berlingeradam | 0:866f2c528c01 | 1 | #include "DemoAppService.h" |
berlingeradam | 0:866f2c528c01 | 2 | |
berlingeradam | 0:866f2c528c01 | 3 | const uint8_t DemoAppService::ServiceUUID[LENGTH_OF_LONG_UUID] = { |
berlingeradam | 0:866f2c528c01 | 4 | 0x6E, 0x40, 0x00, 0x10, 0xB5, 0xA3, 0xF3, 0x93, |
berlingeradam | 0:866f2c528c01 | 5 | 0xE0, 0xA9, 0xE5, 0x0E, 0x24, 0xDC, 0xCA, 0x9E, |
berlingeradam | 0:866f2c528c01 | 6 | }; |
berlingeradam | 0:866f2c528c01 | 7 | |
berlingeradam | 0:866f2c528c01 | 8 | const uint8_t DemoAppService::buttonCharacteristicUUID[LENGTH_OF_LONG_UUID] = { |
berlingeradam | 0:866f2c528c01 | 9 | 0x6E, 0x40, 0x00, 0x11, 0xB5, 0xA3, 0xF3, 0x93, |
berlingeradam | 0:866f2c528c01 | 10 | 0xE0, 0xA9, 0xE5, 0x0E, 0x24, 0xDC, 0xCA, 0x9E, |
berlingeradam | 0:866f2c528c01 | 11 | }; |
berlingeradam | 0:866f2c528c01 | 12 | |
berlingeradam | 0:866f2c528c01 | 13 | const uint8_t DemoAppService::slider1CharacteristicUUID[LENGTH_OF_LONG_UUID] = { |
berlingeradam | 0:866f2c528c01 | 14 | 0x6E, 0x40, 0x00, 0x12, 0xB5, 0xA3, 0xF3, 0x93, |
berlingeradam | 0:866f2c528c01 | 15 | 0xE0, 0xA9, 0xE5, 0x0E, 0x24, 0xDC, 0xCA, 0x9E, |
berlingeradam | 0:866f2c528c01 | 16 | }; |
berlingeradam | 0:866f2c528c01 | 17 | |
berlingeradam | 0:866f2c528c01 | 18 | const uint8_t DemoAppService::slider2CharacteristicUUID[LENGTH_OF_LONG_UUID] = { |
berlingeradam | 0:866f2c528c01 | 19 | 0x6E, 0x40, 0x00, 0x13, 0xB5, 0xA3, 0xF3, 0x93, |
berlingeradam | 0:866f2c528c01 | 20 | 0xE0, 0xA9, 0xE5, 0x0E, 0x24, 0xDC, 0xCA, 0x9E, |
berlingeradam | 0:866f2c528c01 | 21 | }; |