is_connected() . Trying to set up an alert. #387
-
Hey Phil. "Here I go again on my own," White Tiger. Trying to get an alert when bluetooth is connected. /** @copyright Copyright (c) 2022 */ #include "AudioTools.h" const int led = 5; int buffer_count = 30; // Provide data to A2DP void setup() { pinMode(led, OUTPUT); // sd_active is setting up SPI with the right SD pins by calling // start QueueStream // setup player // fill buffer with some data // start a2dp source } void loop() { if (is_connected()) { player.copy(); } |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
A2DP is an object oriented library! You forgot to add the object which should execute the method: a2dp.is_connected() |
Beta Was this translation helpful? Give feedback.
-
Check the documentation and you should see your error: https://pschatzmann.github.io/ESP32-A2DP/html/class_bluetooth_a2_d_p_source.html |
Beta Was this translation helpful? Give feedback.
A2DP is an object oriented library! You forgot to add the object which should execute the method: a2dp.is_connected()