Sending bluetooth LE data in advertisement on iOS
问题 My app is running as a Bluetooth LE peripheral, and I'm trying to send just a few bytes of custom data in the Advertisement. func btStartBroadcasting(peripheral: CBPeripheralManager!) { // create an array of bytes to send var byteArray = [UInt8]() byteArray.append(0b11011110); // 'DE' byteArray.append(0b10101101); // 'AD' // convert that array into an NSData object var manufacturerData = NSData(bytes: byteArray,length: byteArray.count) // define a UIUD for the service let theUUid = CBUUID