Page 1 of 1

Bluetooth Classic SPP recognized as Speaker

Posted: Thu Jun 14, 2018 7:33 pm
by davnec
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!

Re: Bluetooth Classic SPP recognized as Speaker

Posted: Fri Jun 15, 2018 9:37 am
by davnec
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);
   

Re: Bluetooth Classic SPP recognized as Speaker

Posted: Fri Nov 04, 2022 12:32 pm
by sueng66
In my case, I could set the service class but could not set the major and minor device class, any suggestion ?