在调用停止广告方法后,需要调用flushPendingBatchResults()方法将剩余数据清空。以下是示例代码:
// 停止广告方法 bluetoothLeAdvertiser.stopAdvertising(callback);
// 清除剩余数据 bluetoothLeAdvertiser.flushPendingBatchResults();
上一篇:AndroidBleGlucose-onCharacteristicChangednotcalled
下一篇:AndroidBLE广告