 
 class blText:NSObject,CBCentralManagerDelegate,CBPeripheralDelegate,CBPeripheralManagerDelegate,AVSpeechSynthesizerDelegate {
     
-    var characteristicMutable: CBMutableCharacteristic!
-    var centralManager:CBCentralManager!
-    var peripheral:CBPeripheral!
+    fileprivate var characteristicMutable: CBMutableCharacteristic!
+    fileprivate var centralManager:CBCentralManager!
+    fileprivate  var peripheral:CBPeripheral!
+    fileprivate var peripheralManager: CBPeripheralManager!
+    fileprivate var characteristicCBC:CBMutableCharacteristic!
+    fileprivate let serviceUUID = CBUUID(string: "DD9B8295-E177-4F8A-A5E1-DC5FED19556D")
     var characteristic:CBCharacteristic!
-    let serviceUUID = CBUUID(string: "DD9B8295-E177-4F8A-A5E1-DC5FED19556D")
-    var peripheralManager: CBPeripheralManager!
-    var characteristicCBC:CBMutableCharacteristic!
     var name :  String!
-
+    
     static let shared = blText()
     func bleSetting(){
-    
+        
         // ペリフェラルマネージャ初期化
-                let option : Dictionary =  [
-                    CBCentralManagerRestoredStatePeripheralsKey: "dddaisuke"
-                ]
-                peripheralManager = CBPeripheralManager(delegate: self, queue: nil , options:option)
-                centralManager = CBCentralManager(delegate: self, queue: nil)
+        let option : Dictionary =  [
+            CBCentralManagerRestoredStatePeripheralsKey: "dddaisuke"
+        ]
+        peripheralManager = CBPeripheralManager(delegate: self, queue: nil , options:option)
+        centralManager = CBCentralManager(delegate: self, queue: nil)
     }
     
     func peripheralManager(_ peripheral: CBPeripheralManager,
-                                  willRestoreState dict: [String : Any]) {
+                           willRestoreState dict: [String : Any]) {
         // ペリフェラルマネージャ初期化
         let option : Dictionary =  [
             CBCentralManagerRestoredStatePeripheralsKey: "dddaisuke"

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

    }
    
    // アドバタイズ開始処理が完了すると呼ばれる
     func peripheralManagerDidStartAdvertising(_ peripheral: CBPeripheralManager, error: Error?) {
        if let error = error {
            
            print("アドバタイズ開始失敗！ error: \(error)")
