Bluetooth Classic SPP recognized as Speaker

davnec
Posts: 5
Joined: Mon Jul 10, 2017 8:14 am

Bluetooth Classic SPP recognized as Speaker

Postby davnec » Thu Jun 14, 2018 7:33 pm

Hi at all, I'm testing the bluetooth classic SPP profile as in example folder (bt_spp_acceptor), it works! But I have noticed that the device is recognized as Speaker or Audio devices.
Is possible to change the profile (or class?) to a generic type (a generic "bluetooth device" is enough)?

I have tried the

Code: Select all

esp_bt_gap_set_cod
whith

Code: Select all

ESP_BT_CLR_COD_SERVICE_CLASS
without difference.

Someone can help me?

Thanks!

davnec
Posts: 5
Joined: Mon Jul 10, 2017 8:14 am

Re: Bluetooth Classic SPP recognized as Speaker

Postby davnec » Fri Jun 15, 2018 9:37 am

I have solved!

I have to set all the minor, major and service

Code: Select all

        class.minor = 0b000101;
        class.major = 0b00001;
        class.service = 0b00000010000;

        esp_err_t ret;
        ret = esp_bt_gap_set_cod(class, ESP_BT_INIT_COD);
   

sueng66
Posts: 1
Joined: Fri Nov 04, 2022 12:28 pm

Re: Bluetooth Classic SPP recognized as Speaker

Postby sueng66 » Fri Nov 04, 2022 12:32 pm

In my case, I could set the service class but could not set the major and minor device class, any suggestion ?

Who is online

Users browsing this forum: No registered users and 56 guests