-1
このブルートゥースコードの踏面に問題があります。私はこのライブラリhttps://github.com/xabre/xamarin-bluetooth-leを使用しています。アンドロイド(samsung SM G900V Api 23)を対象としていますが、iOS(iphone 6 10.3)で実行すると、ブレークポイントを追加しない限りアップデートは実行されません。私はいくつかのことを試しましたが、私はC#とスレッド化に新しいです。私は間違って何をしていますか?この同様C#async methods with BLE
await infoCharacter.StartUpdatesAsync().ContinueWith(result =>
{
infoCharacter.ValueUpdated += (o, args) =>
{
var bytes = args.Characteristic.Value;
Console.WriteLine("Characteristic Value: {0}", bytes);
PrintByteArray(bytes);
};
});