diff --git a/playground/hardware/Bytewizer.TinyCLR.Hardware.csproj b/playground/hardware/Bytewizer.TinyCLR.Hardware.csproj
index 1a797ca..e5f3689 100644
--- a/playground/hardware/Bytewizer.TinyCLR.Hardware.csproj
+++ b/playground/hardware/Bytewizer.TinyCLR.Hardware.csproj
@@ -85,6 +85,9 @@
2.2.0
+
+ 2.2.0
+
2.2.0
diff --git a/playground/hardware/Hardware/NetworkProvider.cs b/playground/hardware/Hardware/NetworkProvider.cs
index df828fd..68d5c62 100644
--- a/playground/hardware/Hardware/NetworkProvider.cs
+++ b/playground/hardware/Hardware/NetworkProvider.cs
@@ -5,6 +5,7 @@
using System.Threading;
using GHIElectronics.TinyCLR.Pins;
+using GHIElectronics.TinyCLR.Devices.I2c;
using GHIElectronics.TinyCLR.Devices.Spi;
using GHIElectronics.TinyCLR.Devices.Gpio;
using GHIElectronics.TinyCLR.Devices.Network;
@@ -46,7 +47,7 @@ public static void InitializeEthernet()
var networkInterfaceSetting = new EthernetNetworkInterfaceSettings
{
- MacAddress = new byte[] { 0x00, 0x8D, 0xB4, 0x49, 0xAD, 0xBD },
+ MacAddress = GetMacAddress(),
DhcpEnable = true,
DynamicDnsEnable = true,
@@ -257,6 +258,27 @@ public static void InitializeWiFi2(string ssid, string password)
}
}
+ private static byte[] GetMacAddress()
+ {
+ var i2cController = I2cController.FromName(SC20100.I2cBus.I2c1);
+ var i2cSettings = new I2cConnectionSettings(0x50);
+ var i2cDevice = i2cController.GetDevice(i2cSettings);
+
+ // Microchip 24AA025E48T EUI-48 Node Address
+ var writeBuffer = new byte[1] { 0xFA }; // node address value start location
+ var readBuffer = new byte[6]; // EUI-48 6-byte size
+
+ try
+ {
+ i2cDevice.WriteRead(writeBuffer, readBuffer);
+ }
+ catch
+ {
+ readBuffer = new byte[6] { 0x00, 0x8D, 0xB4, 0x49, 0xAD, 0xBD };
+ }
+
+ return readBuffer;
+ }
public static string Info(NetworkController controller)
{
var ipProperties = controller.GetIPProperties();
diff --git a/src/http/Bytewizer.TinyCLR.Http.Authentication/Bytewizer.TinyCLR.Http.Authentication.csproj b/src/http/Bytewizer.TinyCLR.Http.Authentication/Bytewizer.TinyCLR.Http.Authentication.csproj
index 40098e2..f6dc023 100644
--- a/src/http/Bytewizer.TinyCLR.Http.Authentication/Bytewizer.TinyCLR.Http.Authentication.csproj
+++ b/src/http/Bytewizer.TinyCLR.Http.Authentication/Bytewizer.TinyCLR.Http.Authentication.csproj
@@ -68,22 +68,22 @@
- 2.1.10
+ 2.1.11
- 2.1.10
+ 2.1.11
- 2.1.10
+ 2.1.11
- 2.2.0
+ 2.2.0.4200
- 2.2.0
+ 2.2.0.4200
- 6.2.0
+ 6.2.1
runtime; build; native; contentfiles; analyzers; buildtransitive
all
diff --git a/src/http/Bytewizer.TinyCLR.Http.Cookies/Bytewizer.TinyCLR.Http.Cookies.csproj b/src/http/Bytewizer.TinyCLR.Http.Cookies/Bytewizer.TinyCLR.Http.Cookies.csproj
index 33a8a59..30228ba 100644
--- a/src/http/Bytewizer.TinyCLR.Http.Cookies/Bytewizer.TinyCLR.Http.Cookies.csproj
+++ b/src/http/Bytewizer.TinyCLR.Http.Cookies/Bytewizer.TinyCLR.Http.Cookies.csproj
@@ -67,13 +67,13 @@
- 2.1.10
+ 2.1.11
- 2.2.0
+ 2.2.0.4200
- 6.2.0
+ 6.2.1
runtime; build; native; contentfiles; analyzers; buildtransitive
all
diff --git a/src/http/Bytewizer.TinyCLR.Http.Cors/Bytewizer.TinyCLR.Http.Cors.csproj b/src/http/Bytewizer.TinyCLR.Http.Cors/Bytewizer.TinyCLR.Http.Cors.csproj
index a6392cb..79cee13 100644
--- a/src/http/Bytewizer.TinyCLR.Http.Cors/Bytewizer.TinyCLR.Http.Cors.csproj
+++ b/src/http/Bytewizer.TinyCLR.Http.Cors/Bytewizer.TinyCLR.Http.Cors.csproj
@@ -76,13 +76,13 @@
- 2.1.10
+ 2.1.11
- 2.2.0
+ 2.2.0.4200
- 6.2.0
+ 6.2.1
runtime; build; native; contentfiles; analyzers; buildtransitive
all
diff --git a/src/http/Bytewizer.TinyCLR.Http.Diagnostics/Bytewizer.TinyCLR.Http.Diagnostics.csproj b/src/http/Bytewizer.TinyCLR.Http.Diagnostics/Bytewizer.TinyCLR.Http.Diagnostics.csproj
index a15e44c..b57770f 100644
--- a/src/http/Bytewizer.TinyCLR.Http.Diagnostics/Bytewizer.TinyCLR.Http.Diagnostics.csproj
+++ b/src/http/Bytewizer.TinyCLR.Http.Diagnostics/Bytewizer.TinyCLR.Http.Diagnostics.csproj
@@ -61,16 +61,16 @@
- 2.1.10
+ 2.1.11
- 2.2.0
+ 2.2.0.4200
- 2.2.0
+ 2.2.0.4200
- 6.2.0
+ 6.2.1
runtime; build; native; contentfiles; analyzers; buildtransitive
all
diff --git a/src/http/Bytewizer.TinyCLR.Http.Json/Bytewizer.TinyCLR.Http.Json.csproj b/src/http/Bytewizer.TinyCLR.Http.Json/Bytewizer.TinyCLR.Http.Json.csproj
index 27dcf53..5eb3a74 100644
--- a/src/http/Bytewizer.TinyCLR.Http.Json/Bytewizer.TinyCLR.Http.Json.csproj
+++ b/src/http/Bytewizer.TinyCLR.Http.Json/Bytewizer.TinyCLR.Http.Json.csproj
@@ -48,16 +48,16 @@
- 2.1.10
+ 2.1.11
- 2.2.0
+ 2.2.0.4200
- 2.2.0
+ 2.2.0.4200
- 6.2.0
+ 6.2.1
runtime; build; native; contentfiles; analyzers; buildtransitive
all
diff --git a/src/http/Bytewizer.TinyCLR.Http.Mvc/Bytewizer.TinyCLR.Http.Mvc.csproj b/src/http/Bytewizer.TinyCLR.Http.Mvc/Bytewizer.TinyCLR.Http.Mvc.csproj
index 8e98c14..3117a35 100644
--- a/src/http/Bytewizer.TinyCLR.Http.Mvc/Bytewizer.TinyCLR.Http.Mvc.csproj
+++ b/src/http/Bytewizer.TinyCLR.Http.Mvc/Bytewizer.TinyCLR.Http.Mvc.csproj
@@ -105,13 +105,13 @@
- 2.1.10
+ 2.1.11
- 2.2.0
+ 2.2.0.4200
- 6.2.0
+ 6.2.1
runtime; build; native; contentfiles; analyzers; buildtransitive
all
diff --git a/src/http/Bytewizer.TinyCLR.Http.PageBuilder/Bytewizer.TinyCLR.Http.PageBuilder.csproj b/src/http/Bytewizer.TinyCLR.Http.PageBuilder/Bytewizer.TinyCLR.Http.PageBuilder.csproj
index 0c04624..fe69c8b 100644
--- a/src/http/Bytewizer.TinyCLR.Http.PageBuilder/Bytewizer.TinyCLR.Http.PageBuilder.csproj
+++ b/src/http/Bytewizer.TinyCLR.Http.PageBuilder/Bytewizer.TinyCLR.Http.PageBuilder.csproj
@@ -50,13 +50,13 @@
- 2.1.10
+ 2.1.11
- 2.2.0
+ 2.2.0.4200
- 6.2.0
+ 6.2.1
runtime; build; native; contentfiles; analyzers; buildtransitive
all
diff --git a/src/http/Bytewizer.TinyCLR.Http.ResourceManager/Bytewizer.TinyCLR.Http.ResourceManager.csproj b/src/http/Bytewizer.TinyCLR.Http.ResourceManager/Bytewizer.TinyCLR.Http.ResourceManager.csproj
index 8d6d082..fafdb73 100644
--- a/src/http/Bytewizer.TinyCLR.Http.ResourceManager/Bytewizer.TinyCLR.Http.ResourceManager.csproj
+++ b/src/http/Bytewizer.TinyCLR.Http.ResourceManager/Bytewizer.TinyCLR.Http.ResourceManager.csproj
@@ -53,13 +53,13 @@
- 2.1.10
+ 2.1.11
- 2.2.0
+ 2.2.0.4200
- 6.2.0
+ 6.2.1
runtime; build; native; contentfiles; analyzers; buildtransitive
all
diff --git a/src/http/Bytewizer.TinyCLR.Http.StaticFiles.Blazor/Bytewizer.TinyCLR.Http.StaticFiles.Blazor.csproj b/src/http/Bytewizer.TinyCLR.Http.StaticFiles.Blazor/Bytewizer.TinyCLR.Http.StaticFiles.Blazor.csproj
index 797f084..250ed83 100644
--- a/src/http/Bytewizer.TinyCLR.Http.StaticFiles.Blazor/Bytewizer.TinyCLR.Http.StaticFiles.Blazor.csproj
+++ b/src/http/Bytewizer.TinyCLR.Http.StaticFiles.Blazor/Bytewizer.TinyCLR.Http.StaticFiles.Blazor.csproj
@@ -62,13 +62,13 @@
- 2.1.10
+ 2.1.11
- 2.2.0
+ 2.2.0.4200
- 6.2.0
+ 6.2.1
runtime; build; native; contentfiles; analyzers; buildtransitive
all
diff --git a/src/http/Bytewizer.TinyCLR.Http.StaticFiles.Resources/Bytewizer.TinyCLR.Http.StaticFiles.Resources.csproj b/src/http/Bytewizer.TinyCLR.Http.StaticFiles.Resources/Bytewizer.TinyCLR.Http.StaticFiles.Resources.csproj
index 55794ae..9c3d93d 100644
--- a/src/http/Bytewizer.TinyCLR.Http.StaticFiles.Resources/Bytewizer.TinyCLR.Http.StaticFiles.Resources.csproj
+++ b/src/http/Bytewizer.TinyCLR.Http.StaticFiles.Resources/Bytewizer.TinyCLR.Http.StaticFiles.Resources.csproj
@@ -63,13 +63,13 @@
- 2.1.10
+ 2.1.11
- 2.2.0
+ 2.2.0.4200
- 6.2.0
+ 6.2.1
runtime; build; native; contentfiles; analyzers; buildtransitive
all
diff --git a/src/http/Bytewizer.TinyCLR.Http.StaticFiles/Bytewizer.TinyCLR.Http.StaticFiles.csproj b/src/http/Bytewizer.TinyCLR.Http.StaticFiles/Bytewizer.TinyCLR.Http.StaticFiles.csproj
index 8aa0c19..afc3d9e 100644
--- a/src/http/Bytewizer.TinyCLR.Http.StaticFiles/Bytewizer.TinyCLR.Http.StaticFiles.csproj
+++ b/src/http/Bytewizer.TinyCLR.Http.StaticFiles/Bytewizer.TinyCLR.Http.StaticFiles.csproj
@@ -61,13 +61,13 @@
- 2.1.10
+ 2.1.11
- 2.2.0
+ 2.2.0.4200
- 6.2.0
+ 6.2.1
runtime; build; native; contentfiles; analyzers; buildtransitive
all
diff --git a/src/http/Bytewizer.TinyCLR.Http/Bytewizer.TinyCLR.Http.csproj b/src/http/Bytewizer.TinyCLR.Http/Bytewizer.TinyCLR.Http.csproj
index 9990557..03c7f3d 100644
--- a/src/http/Bytewizer.TinyCLR.Http/Bytewizer.TinyCLR.Http.csproj
+++ b/src/http/Bytewizer.TinyCLR.Http/Bytewizer.TinyCLR.Http.csproj
@@ -106,19 +106,19 @@
- 2.1.10
+ 2.1.11
- 2.2.0
+ 2.2.0.4200
- 2.2.0
+ 2.2.0.4200
- 2.2.0
+ 2.2.0.4200
- 6.2.0
+ 6.2.1
runtime; build; native; contentfiles; analyzers; buildtransitive
all
diff --git a/src/sntp/Bytewizer.TinyCLR.Sntp/Bytewizer.TinyCLR.Sntp.csproj b/src/sntp/Bytewizer.TinyCLR.Sntp/Bytewizer.TinyCLR.Sntp.csproj
index 9056f15..43ab27c 100644
--- a/src/sntp/Bytewizer.TinyCLR.Sntp/Bytewizer.TinyCLR.Sntp.csproj
+++ b/src/sntp/Bytewizer.TinyCLR.Sntp/Bytewizer.TinyCLR.Sntp.csproj
@@ -66,22 +66,22 @@
- 2.1.10
+ 2.1.11
- 2.2.0
+ 2.2.0.4200
- 2.2.0
+ 2.2.0.4200
- 2.2.0
+ 2.2.0.4200
- 2.2.0
+ 2.2.0.4200
- 6.2.0
+ 6.2.1
runtime; build; native; contentfiles; analyzers; buildtransitive
all
diff --git a/src/sockets/Bytewizer.TinyCLR.Sockets.Filtering/Bytewizer.TinyCLR.Sockets.Filtering.csproj b/src/sockets/Bytewizer.TinyCLR.Sockets.Filtering/Bytewizer.TinyCLR.Sockets.Filtering.csproj
index f792c4e..824407d 100644
--- a/src/sockets/Bytewizer.TinyCLR.Sockets.Filtering/Bytewizer.TinyCLR.Sockets.Filtering.csproj
+++ b/src/sockets/Bytewizer.TinyCLR.Sockets.Filtering/Bytewizer.TinyCLR.Sockets.Filtering.csproj
@@ -49,7 +49,7 @@
- 6.2.0
+ 6.2.1
runtime; build; native; contentfiles; analyzers; buildtransitive
all
diff --git a/src/sockets/Bytewizer.TinyCLR.Sockets.TcpClient/Bytewizer.TinyCLR.Sockets.TcpClient.csproj b/src/sockets/Bytewizer.TinyCLR.Sockets.TcpClient/Bytewizer.TinyCLR.Sockets.TcpClient.csproj
index 06b529e..7ca9927 100644
--- a/src/sockets/Bytewizer.TinyCLR.Sockets.TcpClient/Bytewizer.TinyCLR.Sockets.TcpClient.csproj
+++ b/src/sockets/Bytewizer.TinyCLR.Sockets.TcpClient/Bytewizer.TinyCLR.Sockets.TcpClient.csproj
@@ -47,13 +47,13 @@
- 2.2.0
+ 2.2.0.4200
- 2.2.0
+ 2.2.0.4200
- 6.2.0
+ 6.2.1
runtime; build; native; contentfiles; analyzers; buildtransitive
all
diff --git a/src/sockets/Bytewizer.TinyCLR.Sockets.UdpClient/Bytewizer.TinyCLR.Sockets.UdpClient.csproj b/src/sockets/Bytewizer.TinyCLR.Sockets.UdpClient/Bytewizer.TinyCLR.Sockets.UdpClient.csproj
index f440e7f..ad4f4c6 100644
--- a/src/sockets/Bytewizer.TinyCLR.Sockets.UdpClient/Bytewizer.TinyCLR.Sockets.UdpClient.csproj
+++ b/src/sockets/Bytewizer.TinyCLR.Sockets.UdpClient/Bytewizer.TinyCLR.Sockets.UdpClient.csproj
@@ -49,13 +49,13 @@
- 2.2.0
+ 2.2.0.4200
- 2.2.0
+ 2.2.0.4200
- 6.2.0
+ 6.2.1
runtime; build; native; contentfiles; analyzers; buildtransitive
all
diff --git a/src/sockets/Bytewizer.TinyCLR.Sockets/Bytewizer.TinyCLR.Sockets.csproj b/src/sockets/Bytewizer.TinyCLR.Sockets/Bytewizer.TinyCLR.Sockets.csproj
index 20c3ada..f5bd5f0 100644
--- a/src/sockets/Bytewizer.TinyCLR.Sockets/Bytewizer.TinyCLR.Sockets.csproj
+++ b/src/sockets/Bytewizer.TinyCLR.Sockets/Bytewizer.TinyCLR.Sockets.csproj
@@ -69,19 +69,19 @@
- 2.1.10
+ 2.1.11
- 2.1.10
+ 2.1.11
- 2.2.0
+ 2.2.0.4200
- 2.2.0
+ 2.2.0.4200
- 6.2.0
+ 6.2.1
runtime; build; native; contentfiles; analyzers; buildtransitive
all