         self.centralManager.scanForPeripherals(withServices: [serviceUUID], options: nil)
         
     }
-
-  open  func setVoice2(data:Data)   {
+    
+    open  func setVoice2(data:Data)   {
         if   self.characteristic != nil {
             peripheral?.writeValue(data, for: characteristic, type: CBCharacteristicWriteType.withResponse)
-            }else{
-                print("characteristicがnillです。")
-            }
-            
-        }
+        }else{
+            print("characteristicがnillです。")
+        }
+        
+    }
     // Writeリクエスト受信時に呼ばれる
     @available(iOS 10.0, *)
     public func peripheralManager(_ peripheral: CBPeripheralManager, didReceiveWrite requests: [CBATTRequest]) {

    }
    
    // キャラクタリスティック発見時に呼ばれる
    public func peripheral(_ peripheral: CBPeripheral,
                           didDiscoverCharacteristicsFor service: CBService,
                           error: Error?){
        if let error = error {

        }
    }
    
    func  peripheral (_ peripheral: CBPeripheral,
                             didUpdateValueFor characteristic: CBCharacteristic,
                             error: Error?) {
        if let error = error {
