Skip to content

Commit f435ea7

Browse files
authored
Fixing configuration block deployment and Wireless AP Network type (#386)
1 parent 53dadec commit f435ea7

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

nanoFramework.Tools.DebugLibrary.Shared/NetworkInformation/NetworkInterfaceType.cs

+7
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,12 @@ public enum NetworkInterfaceType : byte
3333
/// </summary>
3434
[Description("Wi-Fi (802.11)")]
3535
Wireless80211 = 71,
36+
37+
38+
/// <summary>
39+
/// The network interface uses a wireless Soft AP connection (IEEE 802.11 standard).
40+
/// </summary>
41+
[Description("Wi-Fi Access Point (802.11)")]
42+
WirelessAP = 72,
3643
}
3744
}

nanoFramework.Tools.DebugLibrary.Shared/WireProtocol/Engine.cs

+3-2
Original file line numberDiff line numberDiff line change
@@ -4147,7 +4147,7 @@ public DeviceConfiguration.NetworkConfigurationProperties GetNetworkConfiguraton
41474147
networkConfiguration.StartupAddressMode = (byte)AddressMode.Invalid;
41484148
}
41494149

4150-
if (networkConfiguration.InterfaceType > (byte)NetworkInterfaceType.Wireless80211)
4150+
if (networkConfiguration.InterfaceType > (byte)NetworkInterfaceType.WirelessAP)
41514151
{
41524152
// fix this to invalid
41534153
networkConfiguration.InterfaceType = (byte)NetworkInterfaceType.Unknown;
@@ -4776,7 +4776,8 @@ public UpdateDeviceResult UpdateDeviceConfiguration<T>(T configuration, uint blo
47764776
{
47774777
Commands.Monitor_UpdateConfiguration cmd = new Commands.Monitor_UpdateConfiguration
47784778
{
4779-
Configuration = (uint)GetDeviceConfigurationOption(configuration)
4779+
Configuration = (uint)GetDeviceConfigurationOption(configuration),
4780+
BlockIndex = blockIndex,
47804781
};
47814782

47824783
// get packet length, either the maximum allowed size or whatever is still available to TX

0 commit comments

Comments
 (0)