Quantcast
Channel: 蓝牙论坛 - 最近的话题
Viewing all articles
Browse latest Browse all 7485

CC2640 sppledemo 连接Android设备连接时间间隔

$
0
0

想要修改连接时间间隔,代码协议栈和例子用的是:

C:\TI\Connectivity\CC256X BT\CC256x STM32 Bluetopia SDK\v4.2.1.0\NoOS\STM3240G-EVAL\Samples\SPPLEDemo

修改时间间隔的地方只在sppledemo.c的建立连接ConnectLEDevice()函数中找到参数初始化设置

static int ConnectLEDevice(unsigned int BluetoothStackID, BD_ADDR_t BD_ADDR, GAP_LE_Address_Type_t RemoteAddressType ,GAP_LE_Address_Type_t OwnAddressType, Boole

ConnectionParameters.Connection_Interval_Min = 20; //modify by yhc 2017.06.01
ConnectionParameters.Connection_Interval_Max = 200;
ConnectionParameters.Minimum_Connection_Length = 0;
ConnectionParameters.Maximum_Connection_Length = 10000;
ConnectionParameters.Slave_Latency = 0;
ConnectionParameters.Supervision_Timeout = 20000;

我想问的是CC2540中有 GAPRole_SendUpdateParam()函数发送参数请求的函数,CC2564有没有类似的函数,谢谢!


Viewing all articles
Browse latest Browse all 7485

Trending Articles