-
Notifications
You must be signed in to change notification settings - Fork 80
A sample Matter Controller Electron UI Application. #2223
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
base: main
Are you sure you want to change the base?
A sample Matter Controller Electron UI Application. #2223
Conversation
Based on * Electron * Vite * React * Bootstrap CSS & Icons * Typescript Currently, it is only able to commission a single device via BLE onto Thread and on a restart connect to it again. Even on Windows. Missing features: * Dealing with multiple devices * Showing connectivity status * Interactions (Read, Write, Invoke, ...) with the device and displaying results * WiFi commissioning * Handling errors * .... Some Mock UI is commented in app.tsx.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request introduces a new sample Matter Controller Electron UI application. Review focuses on improving correctness and maintainability, addressing potential critical issues such as the application exiting automatically and high severity issues such as runtime errors due to lack of input validation.
packages/examples/src/electron-ui-controller/src/matter/ControllerNode.ts
Outdated
Show resolved
Hide resolved
parseInt(matterLongDiscriminatorText), | ||
parseInt(matterPasscodeText) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
threadOperationalDatasetText, | ||
matterLongDiscriminatorNumber, | ||
matterPasscodeNumber | ||
).catch(error => console.log(error)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
packages/examples/src/electron-ui-controller/src/matter/ControllerNode.ts
Outdated
Show resolved
Hide resolved
// console.log("Found commissioned nodes:", Diagnostic.json(nodes)); | ||
console.log("Found commissioned nodes:", nodes); | ||
|
||
const nodeId = NodeId(environment.vars.number("nodeid") ?? nodes[0]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on
Currently, it is only able to commission a single device via BLE onto Thread and on a restart connect to it again. Even on Windows.
Missing features:
Some Mock UI is commented in app.tsx.