/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void BLEATTClientFindInformationFoundEvent(object sender, Bluegiga.BLE.Events.ATTClient.FindInformationFoundEventArgs e) { Application.Current.Dispatcher.Invoke(delegate { MessageWriter.LogWrite("ble_evt_attclient_find_information_found: ", string.Format("connection={0}, chrhandle={1}, uuid={2}", e.connection, e.chrhandle, BitConverter.ToString(e.uuid))); BLEPeripheral peripheral; if (!connectedDevices.TryGetConnection(e.connection, out peripheral)) { MessageWriter.DebugWrite("Unable to find connection " + e.connection); return; } peripheral.AddNewAttribute(e.chrhandle, e.uuid); if (e.uuid.SequenceEqual(Bluetooth.Descriptors.ClientCharacteristicConfiguration)) { peripheral.attHandleCCC.Enqueue(e.chrhandle); } }); }