We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de6b626 commit fefc4bdCopy full SHA for fefc4bd
1 file changed
ExampleConsole/Program.cs
@@ -11,17 +11,20 @@
11
// along with this program. If not, see <http://www.gnu.org/licenses/>.
12
13
using MatterDotNet.Entities;
14
+using MatterDotNet.OperationalDiscovery;
15
16
namespace ExampleConsole
17
{
18
internal class Program
19
20
static async Task Main(string[] args)
21
- Controller controller = Controller.Load("fabric.fabric", "fabric.key");
22
- await controller.EnumerateFabric();
23
- Console.WriteLine(controller.ToString());
24
-
+ Console.WriteLine("Scanning for Devices....");
+ ODNode[] discovered = await BTDiscoveryService.ScanAll();
+ Console.Clear();
25
+ Console.WriteLine("Devices Discovered: ");
26
+ foreach (ODNode node in discovered)
27
+ Console.WriteLine(node.ToString());
28
Console.ReadLine();
29
}
30
0 commit comments