-
-
Notifications
You must be signed in to change notification settings - Fork 159
Expand file tree
/
Copy pathProgram.cs
More file actions
29 lines (24 loc) · 707 Bytes
/
Program.cs
File metadata and controls
29 lines (24 loc) · 707 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//
// Copyright (c) .NET Foundation and Contributors
// See LICENSE file in the project root for full license information.
//
using System.Diagnostics;
using System.Threading;
using TIUtilities = nanoFramework.Hardware.TI.Utilities;
namespace Hardware.TI.Utilities
{
public class Program
{
public static void Main()
{
string devideAddress = "";
byte[] ieeeAddress = TIUtilities.GetIeeeAddress();
foreach (byte b in ieeeAddress)
{
devideAddress += b.ToString("X2");
}
Debug.WriteLine($"Device IEEE address: {devideAddress}");
Thread.Sleep(Timeout.Infinite);
}
}
}