I am doing a Bluetooth LE app on wp8.1 runtime app. I have registered a value change event to listen when new data are coming.
heartRateMeasurementCharacteristic.ValueChanged += heartRateMeasurement_DataChanged;
private void heartRateMeasurement_DataChanged(GattCharacteristic sender, GattValueChangedEventArgs args)
{
//do things
}
after a while the event is not triggered anymore, and rpgram throw NO exception(I checked runtime, memory etc). How can I debug this? Is that possible the event thread is down leaves without any exception?
under condition that BLE device is keep sending signal.
这是旧文章,但答案是将heartRateMeasurementCharacteristic设置为全局变量。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.