-
Notifications
You must be signed in to change notification settings - Fork 49
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
simulate a beacon detected #44
Labels
Comments
Such a virtual beacon would be a great thing. It would also be very useful for unit tests so that the beacon response could be mocked. However I didn't think about how to realize it yet. If you have an idea I'd be very happy about a PR! |
You have the code to read a real beacon when ondeviceconnected or something
like that. You have the data received and you emit an event or callback in
response. No?
All that's left is to debug and catch the event.
בתאריך יום ב׳, 26 בנוב׳ 2018, 12:50, מאת André Kovac <
[email protected]>:
… Such a virtual beacon would be a great thing. It would also be very useful
for unit tests so that the beacon response could be mocked. However I
didn't think about how to realize it yet. If you have an idea I'd be very
happy about a PR!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#44 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABsSM9okv2IpwP5SxiDGc5cQy3yrOzIJks5uy8dogaJpZM4Yn3-v>
.
|
And fill it with fake data.
בתאריך יום ב׳, 26 בנוב׳ 2018, 16:30, מאת Moshe Flam <[email protected]>:
… You have the code to read a real beacon when ondeviceconnected or
something like that. You have the data received and you emit an event or
callback in response. No?
All that's left is to debug and catch the event.
בתאריך יום ב׳, 26 בנוב׳ 2018, 12:50, מאת André Kovac <
***@***.***>:
> Such a virtual beacon would be a great thing. It would also be very
> useful for unit tests so that the beacon response could be mocked. However
> I didn't think about how to realize it yet. If you have an idea I'd be very
> happy about a PR!
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#44 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/ABsSM9okv2IpwP5SxiDGc5cQy3yrOzIJks5uy8dogaJpZM4Yn3-v>
> .
>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Could you add a feature to simulate a detected beacon (or a few), and also give a mock of the data received in answer to detected beacons? I need this for my ios app which is crashing when a beacon is detected, and I'm sure there are many developers who could use this.
Or perhaps there's a way to do this that you can tell me?
A regular beacon simulator emitting a simulated beacon is not enough because the Kontakt-io outputs an extra internal field with the kontakt id.
The text was updated successfully, but these errors were encountered: