Hi, so I have a simple app, that lists out available peripheral names. It found for example my iPad, but if I want to change the name to whatever else, it's still showing the old name. Is there any way to refresh it?
Thanks a lot
Hi, so I have a simple app, that lists out available peripheral names. It found for example my iPad, but if I want to change the name to whatever else, it's still showing the old name. Is there any way to refresh it?
Thanks a lot
Update, I actually found this.
extension BluetoothViewModel: CBPeripheralDelegate {
func peripheralDidUpdateName(_ peripheral: CBPeripheral) {
print(peripheral.name!)
}
}
But changed my iPad name so many times but it won't fire the function.