 
         self.discoveredPeripheral?.discoverServices([serviceCBUUID])
 
-
     }
 
     func centralManager(_ central: CBCentralManager, willRestoreState dict: [String : Any]) {
 
         print("willRestoreState")
-
 
     }
 


        print("\ndidDiscoverCharacteristicsFor")

        guard let characteristics: [CBCharacteristic] = service.characteristics else { return }

        for characteristic: CBCharacteristic in characteristics {

            if characteristic.uuid == self.characteristicCBUUID {

                print("Matching characteristic")

                // To listen and read dynamic values
                self.discoveredPeripheral?.setNotifyValue(true, for: characteristic)

                // To read static values
                // self.discoveredPeripheral?.readValue(for: characteristic)
                
            }
            
        }
        


        print("\ndidDiscoverServices")

        if let service: CBService = self.discoveredPeripheral?.services?.filter({ $0.uuid == self.serviceCBUUID }).first {

            guard let characteristicCBUUID: CBUUID = self.characteristicCBUUID else { return }

            self.discoveredPeripheral?.discoverCharacteristics([characteristicCBUUID], for: service)

        }
        
    }
