1
블루투스 연결을 사용하고 rssi를 사용하여 컴퓨터와 iBeacon 사이의 거리를 찾으려고합니다. 내 앱에서 블루투스를 처음 사용했으며 잃어버린 뭔가였습니다. iBeacon 견적에서 RSSI 받기 C#
내가 블루투스 기능을 사용하려면 "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");
출력은 : 기기 이름 : 추정치. 연결되지 않은. 인증 됨. RSSI : -2147483648 (최소 int?) 도움 주셔서 감사합니다.