-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Continued ClientNode and REPL development (#1308)
* Continued ClientNode and REPL development This builds out the controller for the node API to the point where I need to address a conflict between InteractionClient and InteractionServer. Adds: * ControllerBehavior - initializes the node environment to act as a controller and tracks active discoveries * Discovery - a set of classes that manage discovery of commissionable devices * CommissioningClient - a behavior that handles commissioning and related metadata management Fleshes out ClientNode related API. Persistence and management of known nodes work now. Also includes continued development on the "cli tool" REPL including numerous quality of life and aesthetic improvements. * Address PR feedback * Fix discovery cancelation + node hygiene * Cancelation previously left the timeout timer dangling; fixed * Added methods on endpoints to "erase" (clear persisted state) and "delete" (erase + close) * Modified server addresses to include optional "discovery time" and ttl * Modified ClientNodes to prune addresses and commissionable nodes that expire * Make Time.sleep cancelable Adds a few new public APIs but otherwise this is only used by new (under development) codepaths.
- Loading branch information
Showing
90 changed files
with
3,009 additions
and
766 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/** | ||
* @license | ||
* Copyright 2022-2024 Matter.js Authors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import { Command } from "./command.js"; | ||
|
||
Command({ | ||
description: "Clear the terminal screen", | ||
|
||
invoke: function clear() { | ||
console.clear(); | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.