public async void Run(IBackgroundTaskInstance taskInstance)
        {
            try
            {
                Doorphone doorphone = new Doorphone(new IPAddress(new byte[] { 192, 168, 1, 250 }));
                doorphone.BoldEvent += Doorphone_BoldEvent;
                await doorphone.InitializeAsync();

                while (true)
                {
                    await Task.Delay(TimeSpan.FromSeconds(1));
                }
            }
            catch (Exception ex)
            {
            }
        }
 private static async void MainPage_Loaded(object sender, Windows.UI.Xaml.RoutedEventArgs e)
 {
     Doorphone doorphone = new Doorphone(new IPAddress(new byte[] { 192, 168, 1, 250 }));
     await doorphone.InitializeAsync();
 }