Band 1允許設置傳感器讀數的報告間隔。Microsoft Band 2支持的報告間隔
現在band 2看起來像只有一個支持的讀取間隔並且不能更改。有誰知道:
- Microsoft Band上每個傳感器允許支持的報告間隔時間?
- 如何更改報告間隔?
到目前爲止,作爲一個例子,我有以下代碼:
this.bandClient.SensorManager.Altimeter.ReadingChanged += this.OnAltimeterReadingChanged;
//bandClient.SensorManager.Altimeter.ReportingInterval = TimeSpan.FromMilliseconds(1000);
//get a list of available reporting intervals
IEnumerable<TimeSpan> supportedAltimeterReportingIntervals =bandClient.SensorManager.Altimeter.SupportedReportingIntervals;
foreach (var ri in supportedAltimeterReportingIntervals)
{
Debug.WriteLine("Altimeter Reporting Interval is {0}", ri.ToString());
}
這條線:
//bandClient.SensorManager.Altimeter.ReportingInterval = TimeSpan.FromMilliseconds(1000);
返回:
拋出異常:「系統。 ArgumentOutOfRangeException'in Microsoft.Band.ni.DLL
支持報告間隔中的枚舉,返回:高度表 報告間隔是00:00:00.5000000(僅1個間隔)
剛剛在第4頁找到了頻率。非常感謝! – MadProgrammer