Esempio n. 1
0
    protected override async void OnNavigatedTo(NavigationEventArgs e)
    {
        while (true)
        {
            foreach (var b in CommunicationHelper.Beacons)
            {
                if ((DateTime.Now - b.UpdatedAt).Seconds > rssiValidity)
                {
                    //Remove value, and wait for the new one
                    b.Distance = 0;
                }
            }

            //Builds the final EventHub payload containing other metadata
            await CommunicationHelper.ReportBLESignalIntensity();

            //Run in two second window
            await Task.Delay(2000);
        }
    }