     var dd = BLEView().textSam
     var num = NSNumber()
     @IBOutlet weak var textView: UITextView!
-
+    
     override func viewDidLoad() {
         
         super.viewDidLoad()

        dd?.backgroundColor = UIColor.lightGray
        self.view.addSubview(dd!)
        dd?.delegate = self

    }
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()

    }
    override func textFieldShouldReturn(_ textField: UITextField) -> Bool {
        textSam.text = dd?.text
        if dd?.text == "" {
            BLEView().setCut()
            textView.text = ""
        }else{
            setVoice(ddd: textSam.text!)
            //BLEの電波強度を測定します。
            let numRssi = BLEView().setRSSI(rssi: self.num)
            textView.text = ("\("Radial strength"+numRssi.description)")
        }
        dd?.resignFirstResponder()
        return true
    }
