I would like to update ble device name from device1 to user2. How i can do this in swift language . i m atrung to update by ios app.
is below way is right? but not able to update
let hexData = "user2"?.dataFromHexString()
peripheral.writeValue(data, forCharacteristic: characteric, type: CBCharacteristicWriteType.WithResponse)