Hello,
Doing a scanForPeripherals with a given custom UUID service give a different behavior between iOS and Mac OS program execution.
It seemes that CBCentralManagerScanOptionAllowDuplicatesKey is not taken into account on Mac OS (Catalina) using Catalyst and we have multiple advertisement packet as per the log below.
<CBPeripheral: 0x6000033061c0, identifier = 3702E8B8-FCD6-42E1-B79C-1B0202A15B42, name = (null), state = disconnected>
<CBPeripheral: 0x6000033061c0, identifier = 3702E8B8-FCD6-42E1-B79C-1B0202A15B42, name = TIBTOP 2D08, state = disconnected>
<CBPeripheral: 0x600003305d60, identifier = 420ED12B-2767-4DDE-AB4A-B1BA6159C4D3, name = (null), state = disconnected>
<CBPeripheral: 0x600003305d60, identifier = 420ED12B-2767-4DDE-AB4A-B1BA6159C4D3, name = TIBTOP 6890, state = disconnected>
In iOS it works as expected
<CBPeripheral: 0x2807312c0, identifier = 05D6357E-9374-1C5A-F03C-AA798C1A595A, name = TIBTOP, state = disconnected>
<CBPeripheral: 0x280736800, identifier = AF7828EC-E80A-06BA-6134-4F5C064C1BFB, name = TIBTOP, state = disconnected>
Is it a known issue on Mac OS or a missundertanding of the Core Bluetooth behavior on Mac OS ?
Best regards,