0
votes

I am getting Data from BLE Device by Delegate

  • (void)centralManager:(CBCentralManager *)central didDiscoverPeripheral:(CBPeripheral *)peripheral advertisementData:(NSDictionary *)advertisementData RSSI:(NSNumber *)RSSI

But i am not getting full peripheral.name form this method. My BLE Device name is - d7bce65 3fa1b4bf But I am getting - d7bce65 (name is truncated by sapce)

Please help.

1

1 Answers

1
votes

Advertising data is limited to 31 bytes. Besides the local name, your device is probably sending other information like service UUIDs. When all the info doesn’t fit in the 31 byte payload, the local name gets truncated.

You can learn the basics of advertising data here. https://www.silabs.com/community/wireless/bluetooth/knowledge-base.entry.html/2017/02/10/bluetooth_advertisin-hGsf