/// <summary>
        /// Bluetooth への接続処理を実行する
        /// </summary>
        /// <remarks>
        /// リトライの仕組み実装しておくこと
        /// </remarks>
        public void Connection()
        {
            
            try
            {
                if (null == conn)
                {
                    // 指定されたサーバに接続
                    Socket sock = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
                    sock.Connect(ipAddress, SOCKET_PORT);

                    conn = new NetworkStream(sock, true);
                    btReceiver = new BluetoothReceiver(conn);
                    btSender = new BluetoothSender(conn);

                    btReceiver.ReceiverStart();
                }
            }
            catch (SocketException e)
            {
                // リトライ?
                // _logger.ErrorException("SocketException", e);
                // Console.Out.WriteLine("caught an exception: {0}", e.Message);
            }
            catch (Exception e)
            {
                // _logger.ErrorException("Error", e);
                // Console.Out.WriteLine("caught an exception: {0}", e.Message);

                throw;
            }

            return ;
        }
 /// <summary>
 /// 接続を閉じる
 /// </summary>
 public void Close()
 {
     if (null != conn)
     {
         // データ受信終了
         btReceiver.ReceiverStop();
         btReceiver = null;
         conn.Close();
     }
 }