Skip to content

Commit

Permalink
Merge pull request #227 from WildernessLabs/feature/wifi-equatable
Browse files Browse the repository at this point in the history
make wifinetwork IEquatable
  • Loading branch information
adrianstevens committed May 7, 2024
2 parents 05ce4d3 + 621e4f8 commit 81e6c46
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Source/Meadow.Contracts/Gateways/WiFi/WiFiNetwork.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace Meadow.Gateway.WiFi;
/// <summary>
/// Represents a WiFi network.
/// </summary>
public class WifiNetwork
public class WifiNetwork : IEquatable<WifiNetwork>
{
/// <summary>
/// Name of the network
Expand Down Expand Up @@ -119,4 +119,10 @@ private WifiNetwork()
Protocol = protocol;
SignalDbStrength = signalDbStrength;
}

/// <inheritdoc/>
public bool Equals(WifiNetwork other)
{
return this.Bssid.Equals(other.Bssid);
}
}

0 comments on commit 81e6c46

Please sign in to comment.