Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-esp32
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-esp32
Commits
901a3419
Commit
901a3419
authored
Jul 07, 2018
by
Gottfried Haider
Committed by
Me No Dev
Jul 07, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BluetoothSerial: set COD to be compatible with macOS (#1304) (#1556)
parent
9f6d0d29
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
libraries/BluetoothSerial/src/BluetoothSerial.cpp
libraries/BluetoothSerial/src/BluetoothSerial.cpp
+10
-0
No files found.
libraries/BluetoothSerial/src/BluetoothSerial.cpp
View file @
901a3419
...
...
@@ -136,6 +136,16 @@ static bool _init_bt(const char *deviceName)
}
esp_bt_dev_set_device_name
(
deviceName
);
// the default BTA_DM_COD_LOUDSPEAKER does not work with the macOS BT stack
esp_bt_cod_t
cod
;
cod
.
major
=
0b00001
;
cod
.
minor
=
0b000100
;
cod
.
service
=
0b00000010110
;
if
(
esp_bt_gap_set_cod
(
cod
,
ESP_BT_INIT_COD
)
!=
ESP_OK
)
{
log_e
(
"%s set cod failed
\n
"
,
__func__
);
return
false
;
}
return
true
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment