-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62 from WildernessLabs/develop
RC2
- Loading branch information
Showing
22 changed files
with
340 additions
and
67 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: CI Develop Push Build | ||
name: Develop Build | ||
|
||
on: | ||
workflow_dispatch: | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,9 +1,12 @@ | ||
<img src="Design/banner.jpg" style="margin-bottom:10px" /> | ||
|
||
# Meadow.Contracts | ||
|
||
This repository contains the interfaces used by Core Meadow implementations. It requires Meadow.Units and Meadow.Logging. | ||
[![Develop Branch](https://github.com/WildernessLabs/Meadow.Contracts/actions/workflows/ci-develop-push.yml/badge.svg)](https://github.com/WildernessLabs/Meadow.Contracts/actions/workflows/ci-develop-push.yml) | ||
|
||
Please clone Meadow.Units and Meadow.Logging as siblings to resolve solution dependency. | ||
|
||
## Repo Status | ||
This repository contains the interfaces used by Core Meadow implementations. | ||
|
||
[![Develop Branch](https://github.com/WildernessLabs/Meadow.Contracts/actions/workflows/ci-develop-push.yml/badge.svg)](https://github.com/WildernessLabs/Meadow.Contracts/actions/workflows/ci-develop-push.yml) | ||
It has a dependency of the following of two other repos you will need to clone/download to successfully build this solution: | ||
* [Meadow.Units](https://github.com/WildernessLabs/Meadow.Units) | ||
* [Meadow.Logging](https://github.com/WildernessLabs/Meadow.Logging) |
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
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
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
12 changes: 12 additions & 0 deletions
12
Source/Meadow.Contracts/Hardware/Networking/INetworkAdapterController.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,10 +1,22 @@ | ||
namespace Meadow.Hardware | ||
{ | ||
/// <summary> | ||
/// A contract for Meadow devices that support network interfaces | ||
/// </summary> | ||
public interface INetworkAdapterController | ||
{ | ||
/// <summary> | ||
/// The event raised when a network adapter has connected to a network | ||
/// </summary> | ||
event NetworkConnectionHandler NetworkConnected; | ||
/// <summary> | ||
/// The event raised when a network adapter has disconnected from a network | ||
/// </summary> | ||
event NetworkDisconnectionHandler NetworkDisconnected; | ||
|
||
/// <summary> | ||
/// A collection of network adapters | ||
/// </summary> | ||
INetworkAdapterCollection NetworkAdapters { get; } | ||
} | ||
} |
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
29 changes: 29 additions & 0 deletions
29
Source/Meadow.Contracts/Hardware/Networking/NetworkErrorEventArgs.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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using System; | ||
|
||
namespace Meadow.Hardware | ||
{ | ||
/// <summary> | ||
/// Data relating to a WiFi error event. | ||
/// </summary> | ||
public class NetworkErrorEventArgs : EventArgs | ||
{ | ||
/// <summary> | ||
/// Date and time the event was generated. | ||
/// </summary> | ||
public DateTime When { get; private set; } | ||
|
||
/// <summary> | ||
/// Error code. | ||
/// </summary> | ||
public uint ErrorCode { get; private set; } | ||
|
||
/// <summary> | ||
/// Construct a NetworkErrorEventArgs object. | ||
/// </summary> | ||
public NetworkErrorEventArgs(uint code) | ||
{ | ||
When = DateTime.Now; | ||
ErrorCode = code; | ||
} | ||
} | ||
} |
Oops, something went wrong.