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

Refactor Matter server and client #99

Merged
merged 34 commits into from
Nov 29, 2022
Merged

Refactor Matter server and client #99

merged 34 commits into from
Nov 29, 2022

Conversation

marcelveldt
Copy link
Contributor

Almost a complete rewrite, mainly because I needed to wrap my head around Matter and its models and because we changed the approach a bit.

  • Server runs all business logic, client is transparent
  • All data is stored with the server
  • Same (clusters) models share between server and client
  • Objects are serialized at transmission from server to client (or the other way around)
  • Objects are deserialized (restructured back into correct class) from incoming json
  • Server takes care of (re)interviewing nodes if needed

DRAFT, still some work in progress and last bugs to fix!

matter_server/common/helpers/json.py Outdated Show resolved Hide resolved
matter_server/common/helpers/util.py Outdated Show resolved Hide resolved
matter_server/common/models/error.py Outdated Show resolved Hide resolved
matter_server/common/models/message.py Outdated Show resolved Hide resolved
matter_server/common/models/node.py Outdated Show resolved Hide resolved
matter_server/server/storage.py Show resolved Hide resolved
pyproject.toml Show resolved Hide resolved
matter_server/server/device_controller.py Outdated Show resolved Hide resolved
matter_server/server/device_controller.py Show resolved Hide resolved
matter_server/common/models/device.py Outdated Show resolved Hide resolved
matter_server/common/helpers/util.py Outdated Show resolved Hide resolved
matter_server/common/models/node.py Outdated Show resolved Hide resolved
@@ -1,250 +0,0 @@
"""Matter base class."""
Copy link
Contributor

Choose a reason for hiding this comment

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

Discussed offline with Marcel. We're going to re-instate this file again to split again the Matter from WebSocket logic.

@marcelveldt marcelveldt marked this pull request as ready for review November 29, 2022 21:27
@marcelveldt
Copy link
Contributor Author

as greed, we're going to merge this one and fix remaining issues and improvements later

@marcelveldt marcelveldt merged commit 884695d into main Nov 29, 2022
@marcelveldt marcelveldt deleted the refactor-storage branch November 29, 2022 21:32
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.

3 participants