iOS13 use bluetooth to send broadcast as a peripheral issue

iOS13 when using Bluetooth to send broadcast, carry extra 0x0A is TXPowerLevel field, the data will lead to more than a 2 (type and value), the center of the device will resolve bit ahead of two, resulting in analytical failure.

FIG code and with the following:

1 [self.peripheralManager startAdvertising:@{
2                                                CBAdvertisementDataServiceUUIDsKey :@[serviceUUID],
3                                                CBAdvertisementDataLocalNameKey :localName
4                                                }];

In iOS12, the broadcast data transmission is such that:

And iOS13, the broadcast data transmission is such that:

We can see more out of 0x0A field.

 

Bluetooth Type and value table

Guess you like

Origin www.cnblogs.com/coderkongbin/p/11590091.html