Skip to content

Commit f3fce23

Browse files
committed
a2dp example with config
1 parent 7ca9cc5 commit f3fce23

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

examples/examples-stream/streams-generator-a2dp/streams-generator-a2dp.ino

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,11 @@ void setup(void) {
3939
in.begin(cfg);
4040

4141
// We send the test signal via A2DP - so we conect to the MyMusic Bluetooth Speaker
42+
auto cfgA2DP = out.defaultConfig(TX_MODE);
43+
cfgA2DP.name = "LEXON MINO L";
44+
//cfg1.auto_reconnect = false;
45+
out.begin(cfgA2DP);
4246
out.setVolume(0.3);
43-
out.begin(TX_MODE, "LEXON MINO L");
44-
//out.auto_reconnect = true; // if this is use we just quickly connect to the last device ignoring cfg.name
4547
Serial.println("A2DP is connected now...");
4648

4749
}

0 commit comments

Comments
 (0)