Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not receiving continuous updates #3

Open
romuye123 opened this issue Apr 11, 2018 · 0 comments
Open

Not receiving continuous updates #3

romuye123 opened this issue Apr 11, 2018 · 0 comments

Comments

@romuye123
Copy link

1] Thanks for the superb example, it is working perfectly fine. But i am facing a small problem.
I have added timestamp to your foreground watcher example:

String timeStamp = GetTimestamp(DateTime.Now);
Debug.WriteLine("TS: " + timeStamp  + " UUID: " +beacon.UUID.ToString()+" Major: "+beacon.Major+" Minor:"+beacon.Minor+" Power: "+ beacon.TxPower+ " Rssi: "+RawSignalStrengthInDBm+" Distance:"+ beacon.Distance);

And the updates i am receiving from Beacon are not continuous. Have a look at below output:

TS: 11-04-2018 18:16:25 UUID:xx Major: 0 Minor:0 Power: -59 Rssi: -43 Distance:0.0422828681973808
TS: 11-04-2018 18:16:29 UUID:xx Major: 0 Minor:0 Power: -59 Rssi: -50 Distance:0.191064466913606
TS: 11-04-2018 18:16:33 UUID:xx Major: 0 Minor:0 Power: -59 Rssi: -39 Distance:0.0159267056550646
TS: 11-04-2018 18:16:36 UUID:xx Major: 0 Minor:0 Power: -59 Rssi: -41 Distance:0.0262614348355299
TS: 11-04-2018 18:16:40 UUID:xx Major: 0 Minor:0 Power: -59 Rssi: -45 Distance:0.0666200602819741
TS: 11-04-2018 18:16:44 UUID:xx Major: 0 Minor:0 Power: -59 Rssi: -39 Distance:0.0159267056550646
TS: 11-04-2018 18:16:51 UUID:xx Major: 0 Minor:0 Power: -59 Rssi: -50 Distance:0.191064466913606
TS: 11-04-2018 18:17:05 UUID:xx Major: 0 Minor:0 Power: -59 Rssi: -43 Distance:0.0422828681973808
TS: 11-04-2018 18:17:08 UUID:xx Major: 0 Minor:0 Power: -59 Rssi: -49 Distance:0.156113580277573
TS: 11-04-2018 18:17:12 UUID:xx Major: 0 Minor:0 Power: -59 Rssi: -38 Distance:0.0122833223670431
TS: 11-04-2018 18:17:16 UUID:xx Major: 0 Minor:0 Power: -59 Rssi: -42 Distance:0.0334174100367068
TS: 11-04-2018 18:17:19 UUID:xx Major: 0 Minor:0 Power: -59 Rssi: -46 Distance:0.0829961984396635
TS: 11-04-2018 18:17:23 UUID:xx Major: 0 Minor:0 Power: -59 Rssi: -39 Distance:0.0159267056550646
TS: 11-04-2018 18:17:27 UUID:xx Major: 0 Minor:0 Power: -59 Rssi: -43 Distance:0.0422828681973808
TS: 11-04-2018 18:17:30 UUID:xx Major: 0 Minor:0 Power: -59 Rssi: -48 Distance:0.127025893182484


TS: 11-04-2018 18:19:18 UUID:xx Major: 0 Minor:0 Power: -59 Rssi: -43 Distance:0.0422828681973808
TS: 11-04-2018 18:19:36 UUID:xx Major: 0 Minor:0 Power: -59 Rssi: -42 Distance:0.0334174100367068

There is a random gap of 3-4 seconds between each update. Sometimes even larger of 15+seconds, notice the last 2 outputs. What could be the problem ? Is there anything wrong ?

NOTE: The iBeacon is broadcasting data every 900ms. And i have confirmed this by developing Android and iOS app.

2] Background watcher project does not shows anything on screen. Not even on debug and no errors at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants