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

Mockable Peripheral #802

Open
UnknownJoe796 opened this issue Nov 23, 2024 · 1 comment
Open

Mockable Peripheral #802

UnknownJoe796 opened this issue Nov 23, 2024 · 1 comment
Milestone

Comments

@UnknownJoe796
Copy link

It would really help us with our testing if we could make our own implementation of Peripheral to test against.

With Peripheral being a public interface, we are so close to being able to fully mock the device we're connecting to. However, DiscoveredService is platform specific, which interferes with attempts to mock it.

I would like DiscoveredService and DiscoveredCharacteristic to be interfaces such that they can be mocked, if it is possible.

Thanks! This library is pretty awesome for our use so far!

@twyatt twyatt added this to the 0.36.0 milestone Nov 23, 2024
@twyatt
Copy link
Member

twyatt commented Nov 23, 2024

Aw yes. Makes sense. That should be do-able. I'll try to tackle this after I get 0.35.0 release out.

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

2 participants