【问题标题】:Get RSSI from an iBeacon estimote in c#从 c# 中的 iBeacon 估计中获取 RSSI
【发布时间】:2014-02-10 21:44:48
【问题描述】:

我正在尝试使用蓝牙连接并获取 rssi 来定位我的计算机和 iBeacon 的距离。这是我第一次在我的应用程序中使用蓝牙,我有点迷失了。

我下载了“32 英尺”库 (http://32feet.codeplex.com/) 来使用蓝牙功能,但我不能这样做...这是我的代码:

        BluetoothClient b = new BluetoothClient();
        BluetoothDeviceInfo[] devices = b.DiscoverDevices();
        BluetoothDeviceInfo info = devices.ElementAt(0);
        // the first element it's the estimote


        System.Windows.Forms.MessageBox.Show("Device name: " + info.DeviceName+"\n");

        if (info.Connected)
        {
            System.Windows.Forms.MessageBox.Show("Connected\n");
        }
        else
        {
            System.Windows.Forms.MessageBox.Show("Not connected\n");
        }
        if (info.Authenticated)
        {
            System.Windows.Forms.MessageBox.Show("Authenticated\n");
        }
        else
        {
            System.Windows.Forms.MessageBox.Show("Not Authenticated\n");
        }

        System.Windows.Forms.MessageBox.Show("RSSI: " + info.Rssi + "\n");

输出为:设备名称:estimote。未连接。已认证。 RSSI:-2147483648(最小整数?) 感谢您的帮助。

【问题讨论】:

    标签: c# bluetooth ibeacon rssi estimote


    【解决方案1】:

    我是 Wojtek Borowicz,我是 Estimote 的社区布道者。

    很遗憾,RSSI 目前仍不适用于大多数 Windows 蓝牙堆栈。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-09-04
      • 2016-04-16
      • 2012-06-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-01-11
      相关资源
      最近更新 更多