Jos*_*mon 5 bluetooth microsoft-band
我已经购买了微软乐队.我的范围是使用该设备以实时跟踪步骤和心率等信息.我在游荡有没有办法让这些数据实时无需第三台设备直接上电脑,例如使用蓝牙设备?是否有文件系统才能在Band设备中存储数据?我怎样才能存储我的数据,例如我在外面而且我没有移动支持?
编辑:我从网站下载了示例代码.现在,我在使用模拟器的设备运行项目时遇到问题.在这两种情况下,我都收到自举设备失败.找不到设备.在模拟器的情况下,我收到以下错误:
Error 2 Error : DEP6200 : Boostrapping 'Emulator 8.1 U1 qHD 5 inch' failed. Device cannot be found. The configuration data for this product is corrupt. Contact your support personnel.
Personalization.WindowsPhone
Run Code Online (Sandbox Code Playgroud)
如何将设备与我的应用配对?我已经使用微软同步应用程序将设备与PC配对.
Edit2:我创建了一个Windows运行时应用程序,然后我按照上面提到的链接进行了操作.我设法从代码中找到配对设备.如何使用配对设备读取心率?
我的代码如下:
IBandInfo[] bandsPaired = await BandClientManager.Instance.GetBandsAsync();
IBandClient bandClient = await BandClientManager.Instance.ConnectAsync(bandsPaired[0]);
if (bandClient.SensorManager.HeartRate.GetCurrentUserConsent() != UserConsent.Granted)
{
await bandClient.SensorManager.HeartRate.RequestUserConsentAsync();
}
Run Code Online (Sandbox Code Playgroud)
我该怎么做才能将心率作为整数值?有没有办法将项目导入统一?