We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f6d0d2 commit 901a341Copy full SHA for 901a341
libraries/BluetoothSerial/src/BluetoothSerial.cpp
@@ -136,6 +136,16 @@ static bool _init_bt(const char *deviceName)
136
}
137
esp_bt_dev_set_device_name(deviceName);
138
139
+// the default BTA_DM_COD_LOUDSPEAKER does not work with the macOS BT stack
140
+esp_bt_cod_t cod;
141
+ cod.major = 0b00001;
142
+ cod.minor = 0b000100;
143
+ cod.service = 0b00000010110;
144
+if (esp_bt_gap_set_cod(cod, ESP_BT_INIT_COD) != ESP_OK){
145
+log_e("%s set cod failed\n", __func__);
146
+returnfalse;
147
+ }
148
+
149
returntrue;
150
151
0 commit comments