Skip to content
Snippets Groups Projects
Commit 45d4530e authored by theDigitalGuy's avatar theDigitalGuy
Browse files

rebased

parents 7efc2a6e c591f96e
No related tags found
No related merge requests found
...@@ -279,7 +279,10 @@ static const uint8_t UUID_attChar_notification[] = { ...@@ -279,7 +279,10 @@ static const uint8_t UUID_attChar_notification[] = {
static uint8_t notificationValue[20] = "Test"; static uint8_t notificationValue[20] = "Test";
static uint16_t notificationLen = sizeof(notificationValue); static uint16_t notificationLen = sizeof(notificationValue);
<<<<<<< HEAD
=======
>>>>>>> c591f96ef5e523e2ef18d4a276ebfa8ae2988a9b
// starting at 0xf0 with read only characteristics // starting at 0xf0 with read only characteristics
/* BLE UUID for card10 char light sensor */ /* BLE UUID for card10 char light sensor */
...@@ -580,6 +583,26 @@ static const attsAttr_t card10SvcAttrList[] = { ...@@ -580,6 +583,26 @@ static const attsAttr_t card10SvcAttrList[] = {
ATTS_PERMIT_READ_ENC | ATTS_PERMIT_READ_AUTH ATTS_PERMIT_READ_ENC | ATTS_PERMIT_READ_AUTH
}, },
// notification
{
.pUuid = attChUuid,
.pValue = (uint8_t *)UUID_char_notification,
.pLen = (uint16_t *)&UUID_char_len,
.maxLen = sizeof(UUID_char_notification),
.permissions = ATTS_PERMIT_READ
},
{
.pUuid = UUID_attChar_notification,
.pValue = notificationValue,
.pLen = &notificationLen,
.maxLen = sizeof(notificationValue),
.settings = ATTS_SET_WRITE_CBACK | ATTS_SET_READ_CBACK,
.permissions = ATTS_PERMIT_WRITE | ATTS_PERMIT_WRITE_ENC |
ATTS_PERMIT_WRITE_AUTH | ATTS_PERMIT_READ |
ATTS_PERMIT_READ_ENC | ATTS_PERMIT_READ_AUTH
},
// Light sensor // Light sensor
{ {
......
...@@ -138,6 +138,7 @@ typedef _Bool bool; ...@@ -138,6 +138,7 @@ typedef _Bool bool;
#define API_USB_SHUTDOWN 0x110 #define API_USB_SHUTDOWN 0x110
#define API_USB_STORAGE 0x111 #define API_USB_STORAGE 0x111
#define API_USB_CDCACM 0x112 #define API_USB_CDCACM 0x112
#define API_NOTIFICATION 0x113 #define API_NOTIFICATION 0x113
#define API_WS2812_WRITE 0x0120 #define API_WS2812_WRITE 0x0120
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment