Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Techy
firmware
Commits
45d4530e
Commit
45d4530e
authored
Aug 31, 2019
by
theDigitalGuy
Browse files
Options
Downloads
Plain Diff
rebased
parents
7efc2a6e
c591f96e
Branches
notification_characteristic
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
epicardium/ble/card10.c
+23
-0
23 additions, 0 deletions
epicardium/ble/card10.c
epicardium/epicardium.h
+1
-0
1 addition, 0 deletions
epicardium/epicardium.h
with
24 additions
and
0 deletions
epicardium/ble/card10.c
+
23
−
0
View file @
45d4530e
...
@@ -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
{
{
...
...
This diff is collapsed.
Click to expand it.
epicardium/epicardium.h
+
1
−
0
View file @
45d4530e
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment