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

MockDevice support connect/disconnect #751

Merged
merged 8 commits into from
Dec 13, 2023

Conversation

avdyushin
Copy link
Contributor

@avdyushin avdyushin commented Nov 27, 2023

Resolves #750

Attempt to have MockDevice to be connectable and disconnectable

Current simple implementation of mock device a bit confusing.
After creating object and naive calling connect() it does nothing (even no log message that it is not supported or implemented).

This PR just keeps mock simple as it was but provides connect disconnect calls to behave similar to real world device.

@thoutbeckers
Copy link
Collaborator

run apiDump

@avdyushin
Copy link
Contributor Author

run apiDump

We need a checkmark in the description like [ ] I ran apiDump

@thoutbeckers
Copy link
Collaborator

Can we add a simple test, also to demonstrate usage? And a simple README entry. Looks good otherwise.

@avdyushin
Copy link
Contributor Author

Can we add a simple test, also to demonstrate usage? And a simple README entry. Looks good otherwise.

Test added, README updated

Copy link
Collaborator

@thoutbeckers thoutbeckers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice additions

@avdyushin avdyushin merged commit e9e7dd9 into develop Dec 13, 2023
90 of 95 checks passed
@avdyushin avdyushin deleted the feature/750-mock-device-connect branch December 13, 2023 10:30
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

Successfully merging this pull request may close these issues.

Make MockDevice connectable
3 participants