[英]Bluetooth LE event handler quit without exception windows phone 8.1
I am doing a Bluetooth LE app on wp8.1 runtime app. 我正在wp8.1运行时应用程序上执行Bluetooth LE应用程序。 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). 过了一会儿,事件不再触发了,rpgram不会抛出异常(我检查了运行时,内存等)。 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. 在BLE设备持续发送信号的情况下。
这是旧文章,但答案是将heartRateMeasurementCharacteristic设置为全局变量。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.