-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
6 changed files
with
82 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 27 additions & 22 deletions
49
...mplementations/f7/Meadow.F7/Devices/Esp32Coprocessor/EventArgs/WiFiDisconnectEventArgs.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,35 @@ | ||
using Meadow.Devices.Esp32.MessagePayloads; | ||
using System; | ||
using System; | ||
using Meadow.Gateway.WiFi; | ||
using Meadow.Devices.Esp32.MessagePayloads; | ||
using Meadow.Gateways; | ||
using Meadow.Gateways.Exceptions; | ||
using System.Net; | ||
|
||
namespace Meadow.Gateway.WiFi; | ||
|
||
/// <summary> | ||
/// Data relating to a WiFi connection. | ||
/// </summary> | ||
public class WiFiDisconnectEventArgs : EventArgs | ||
namespace Meadow.Gateway.WiFi | ||
{ | ||
/// <summary> | ||
/// Status code of the connection request. | ||
/// Data relating to a WiFi connection. | ||
/// </summary> | ||
public StatusCodes StatusCode { get; private set; } | ||
public class WiFiDisconnectEventArgs : EventArgs | ||
{ | ||
/// <summary> | ||
/// Status code of the connection request. | ||
/// </summary> | ||
public StatusCodes StatusCode { get; private set; } | ||
|
||
/// <summary> | ||
/// Date and time the event was generated. | ||
/// </summary> | ||
public DateTime When { get; private set; } | ||
/// <summary> | ||
/// Date and time the event was generated. | ||
/// </summary> | ||
public DateTime When { get; private set; } | ||
|
||
/// <summary> | ||
/// Construct a WiFiConnectEventArgs request. | ||
/// </summary> | ||
/// <param name="statusCode">Status code of the network connection.</param> | ||
public WiFiDisconnectEventArgs(StatusCodes statusCode) | ||
{ | ||
StatusCode = statusCode; | ||
When = DateTime.UtcNow; | ||
/// <summary> | ||
/// Construct a WiFiConnectEventArgs request. | ||
/// </summary> | ||
/// <param name="statusCode">Status code of the network connection.</param> | ||
public WiFiDisconnectEventArgs(StatusCodes statusCode) | ||
{ | ||
StatusCode = statusCode; | ||
When = DateTime.Now; | ||
} | ||
} | ||
} |
48 changes: 26 additions & 22 deletions
48
...ntations/f7/Meadow.F7/Devices/Esp32Coprocessor/EventArgs/WiFiInterfaceStartedEventArgs.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,34 @@ | ||
using Meadow.Devices.Esp32.MessagePayloads; | ||
using System; | ||
using System; | ||
using Meadow.Gateway.WiFi; | ||
using Meadow.Devices.Esp32.MessagePayloads; | ||
using Meadow.Gateways; | ||
using Meadow.Gateways.Exceptions; | ||
|
||
namespace Meadow.Gateway.WiFi; | ||
|
||
/// <summary> | ||
/// Data related to a start WiFi interface request. | ||
/// </summary> | ||
public class WiFiInterfaceStartedEventArgs : EventArgs | ||
namespace Meadow.Gateway.WiFi | ||
{ | ||
/// <summary> | ||
/// Status code of the start WiFi interface request. | ||
/// Data related to a start WiFi interface request. | ||
/// </summary> | ||
public StatusCodes StatusCode { get; private set; } | ||
public class WiFiInterfaceStartedEventArgs : EventArgs | ||
{ | ||
/// <summary> | ||
/// Status code of the start WiFi interface request. | ||
/// </summary> | ||
public StatusCodes StatusCode { get; private set; } | ||
|
||
/// <summary> | ||
/// Date and time the event was generated. | ||
/// </summary> | ||
public DateTime When { get; private set; } | ||
/// <summary> | ||
/// Date and time the event was generated. | ||
/// </summary> | ||
public DateTime When { get; private set; } | ||
|
||
/// <summary> | ||
/// Construct a WiFiInterfaceStartedEventArgs object. | ||
/// </summary> | ||
/// <param name="statusCode">Status of the WiFi start interface start request.</param> | ||
public WiFiInterfaceStartedEventArgs(StatusCodes statusCode) | ||
{ | ||
StatusCode = statusCode; | ||
When = DateTime.UtcNow; | ||
/// <summary> | ||
/// Construct a WiFiInterfaceStartedEventArgs object. | ||
/// </summary> | ||
/// <param name="statusCode">Status of the WiFi start interface start request.</param> | ||
public WiFiInterfaceStartedEventArgs(StatusCodes statusCode) | ||
{ | ||
StatusCode = statusCode; | ||
When = DateTime.Now; | ||
} | ||
} | ||
} |
45 changes: 23 additions & 22 deletions
45
...ntations/f7/Meadow.F7/Devices/Esp32Coprocessor/EventArgs/WiFiInterfaceStoppedEventArgs.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,31 @@ | ||
using Meadow.Devices.Esp32.MessagePayloads; | ||
using System; | ||
using System; | ||
using Meadow.Devices.Esp32.MessagePayloads; | ||
|
||
namespace Meadow.Gateway.WiFi; | ||
|
||
/// <summary> | ||
/// Data relating to a stop WiFi interface request. | ||
/// </summary> | ||
public class WiFiInterfaceStoppedEventArgs : EventArgs | ||
namespace Meadow.Gateway.WiFi | ||
{ | ||
/// <summary> | ||
/// Status code of the stop WiFi interface request. | ||
/// Data relating to a stop WiFi interface request. | ||
/// </summary> | ||
public StatusCodes StatusCode { get; private set; } | ||
public class WiFiInterfaceStoppedEventArgs : EventArgs | ||
{ | ||
/// <summary> | ||
/// Status code of the stop WiFi interface request. | ||
/// </summary> | ||
public StatusCodes StatusCode { get; private set; } | ||
|
||
/// <summary> | ||
/// Date and time the event was generated. | ||
/// </summary> | ||
public DateTime When { get; private set; } | ||
/// <summary> | ||
/// Date and time the event was generated. | ||
/// </summary> | ||
public DateTime When { get; private set; } | ||
|
||
/// <summary> | ||
/// Construct a WiFiInterfaceStoppedEventArgs object. | ||
/// </summary> | ||
/// <param name="statusCode">Status code of the </param> | ||
public WiFiInterfaceStoppedEventArgs(StatusCodes statusCode) | ||
{ | ||
StatusCode = statusCode; | ||
When = DateTime.UtcNow; | ||
/// <summary> | ||
/// Construct a WiFiInterfaceStoppedEventArgs object. | ||
/// </summary> | ||
/// <param name="statusCode">Status code of the </param> | ||
public WiFiInterfaceStoppedEventArgs(StatusCodes statusCode) | ||
{ | ||
StatusCode = statusCode; | ||
When = DateTime.Now; | ||
} | ||
} | ||
} |