我的 windows phone 连接到多个频段。我想读取传感器信号并记录所有波段。我想知道如何在 sensor_ReadingChanged 方法中获取波段 ID 或名称。还是有其他方法?我正在使用 C#。
async void sensor_ReadingChanged(object sender, Microsoft.Band.Sensors.BandSensorReadingEventArgs<Microsoft.Band.Sensors.IBandHeartRateReading> e)
{
string bandname = "" //how to get the name/id of the band
string msg = bandname + "\theartrate\t" + e.SensorReading.Timestamp.ToString() + "\t" + e.SensorReading.HeartRate.ToString() + Environment.NewLine;
await SendSignal(msg); //record heart rate from this band
}