I've tried various examples from esp-adf, multiple speakers, and headphones and all with the same results.
I can see the bonded device list also and the device is there.
Is there something in these examples/menuconfig that needs to be enabled to allow a previously bonded device to connect correctly without putting the device in pairing mode first?
Is there a list of callback functions that need to be set for different BT connection types? There are these three callback functions which are called when pairing mode is run first, but not called if the bluetooth connects without pairing mode. These need to be run for the example to work correctly.
Code: Select all
/* register GAP callback function */
esp_bt_gap_register_callback(bt_app_gap_cb);
/* initialize AVRCP controller */
esp_avrc_ct_init();
esp_avrc_ct_register_callback(bt_app_rc_ct_cb);
/* initialize A2DP source */
esp_a2d_register_callback(&bt_app_a2d_cb);
esp_a2d_source_register_data_callback(bt_app_a2d_data_cb);