目前使用simpleBLECentral与simpleBLEPeripheral
我想把主机扫瞄到的从机全部都列表到LCD上,请问是改Display discovery results这里吗?
另外请问在simpleBLECentral中可以一次扫瞄到几个simpleBLEPeripheral?
if ( keys & HAL_KEY_LEFT )
{
// Display discovery results
if ( !simpleBLEScanning && simpleBLEScanRes > 0 )
{
// Increment index of current result (with wraparound)
simpleBLEScanIdx++;
if ( simpleBLEScanIdx >= simpleBLEScanRes )
{
simpleBLEScanIdx = 0;
}
LCD_WRITE_STRING_VALUE( "Device", simpleBLEScanIdx + 1,
10, HAL_LCD_LINE_1 );
LCD_WRITE_STRING( bdAddr2Str( simpleBLEDevList[simpleBLEScanIdx].addr ),
HAL_LCD_LINE_2 );
}
}
Yue TANG:
是的。不过屏就那么大,显示不了几个