我在GAP_DEVICE_DISCOVERY_EVENT里,只印出目前扫描的结果,这样约4秒的时间,请问能够修改哪里加速扫描的时间吗?例如改为2秒?
case GAP_DEVICE_DISCOVERY_EVENT:
{
// discovery complete
simpleBLEScanning = FALSE;
LCD_WRITE_STRING( bdAddr2Str( simpleBLEDevList[0].addr ),HAL_LCD_LINE_7 );
}
break;
Viki Shi:
可以修改LE_Scan_Window和LE_Scan_Interval
Viki Shi:
详解请参考这边:http://blog.csdn.net/zyjjingle/article/details/37917923
Sco Lin:
回复 Viki Shi:
请问我在simpleBLECentral可以在哪里修改LE_Scan_Interval与LE_Scan_Window 呢?
是不是默认都没有设定?
Sco Lin:
回复 Sco Lin:
找到了LE_Scan_Interval的修改點,那LE_Scan_Window 在哪裡呢?
// Setup GAP LE_Scan_Interval
GAP_SetParamValue( TGAP_GEN_DISC_SCAN, DEFAULT_SCAN_DURATION );
GAP_SetParamValue( TGAP_LIM_DISC_SCAN, DEFAULT_SCAN_DURATION );
GGS_SetParameter( GGS_DEVICE_NAME_ATT, GAP_DEVICE_NAME_LEN, (uint8 *) simpleBLEDeviceName );
#define DEFAULT_SCAN_DURATION 4000