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
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
card10
firmware
Merge requests
!95
Keep advertising bondable state indefinitely
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Keep advertising bondable state indefinitely
schneider/ble-keep-advertising
into
master
Overview
1
Commits
2
Pipelines
2
Changes
1
Merged
schneider
requested to merge
schneider/ble-keep-advertising
into
master
5 years ago
Overview
1
Commits
2
Pipelines
2
Changes
1
Expand
0
0
Merge request reports
Compare
master
version 1
d4a2b4a0
5 years ago
master (base)
and
latest version
latest version
65d79dfc
2 commits,
5 years ago
version 1
d4a2b4a0
2 commits,
5 years ago
1 file
+
8
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
epicardium/ble/ble_main.c
+
8
−
1
Options
@@ -69,7 +69,7 @@ typedef union
/*! configurable parameters for advertising */
static
const
appAdvCfg_t
bleAdvCfg
=
{
{
6000
0
,
0
,
0
},
/*! Advertising durations in ms */
{
0
,
0
,
0
},
/*! Advertising durations in ms */
{
500
/
0
.
625
,
4000
/
0
.
625
,
0
}
/*! Advertising intervals in 0.625 ms units */
};
@@ -322,8 +322,15 @@ static void bleSetup(bleMsg_t *pMsg)
AppAdvSetData
(
APP_ADV_DATA_CONNECTABLE
,
0
,
NULL
);
AppAdvSetData
(
APP_SCAN_DATA_CONNECTABLE
,
0
,
NULL
);
#if 0
/* TODO: card10: until we have an BLE dialog, be discoverable and bondable always */
/* start advertising; automatically set connectable/discoverable mode and bondable mode */
AppAdvStart(APP_MODE_AUTO_INIT);
#else
/* enter discoverable and bondable mode mode by default */
AppSetBondable
(
TRUE
);
AppAdvStart
(
APP_MODE_DISCOVERABLE
);
#endif
}
Loading