限制Android设备上的最大蓝牙连接

时间:2019-07-16 22:51:16

标签: android bluetooth bluetooth-lowenergy android-bluetooth bluetooth-gatt

我想将要连接到自定义Android硬件的蓝牙设备的最大数量限制为2或3。为此,我将宏从/system/bt/include/bt_target.h更改为:

#define GATT_MAX_PHY_CHANNEL        2

#define MAX_L2CAP_LINKS             7

但是我的设备仍然可以连接2个以上的设备。我正在连接的设备配置文件是:

  • A2DP
  • HID(2个设备)

HID

0 个答案:

没有答案