-
Notifications
You must be signed in to change notification settings - Fork 3
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 #26 from WildernessLabs/develop
Merge to main for RC2-2
- Loading branch information
Showing
50 changed files
with
769 additions
and
55 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
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
14 changes: 14 additions & 0 deletions
14
Meadow_DotNet_SDK/Project_Templates/templates/MeadowApplication/app.config.yaml
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,14 @@ | ||
# Uncomment additional options as needed. | ||
# To learn more about these config options, including custom application configuration settings, check out the Application Settings Configuration documentation. | ||
# http://developer.wildernesslabs.co/Meadow/Meadow.OS/Configuration/Application_Settings_Configuration/ | ||
|
||
Lifecycle: | ||
# Control whether Meadow will restart when an unhandled app exception occurs. Combine with Lifecycle > AppFailureRestartDelaySeconds to control restart timing. | ||
RestartOnAppFailure: false | ||
# # When app set to restart automatically on app failure, | ||
# AppFailureRestartDelaySeconds: 15 | ||
|
||
# # Adjust the level of logging detail. | ||
# Logging: | ||
# LogLevel: | ||
# Default: "Trace" |
45 changes: 43 additions & 2 deletions
45
Meadow_DotNet_SDK/Project_Templates/templates/MeadowApplication/meadow.config.yaml
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,2 +1,43 @@ | ||
MonoControl: | ||
Options: --jit | ||
# Uncommented these options as needed. | ||
# To learn more about these config options, check out the OS & Device Configuration documentation. | ||
# http://developer.wildernesslabs.co/Meadow/Meadow.OS/Configuration/OS_Device_Configuration/ | ||
|
||
# Device: | ||
# # Name of the device on the network. | ||
# Name: MeadowF7V2_ConfigSample | ||
# | ||
# # Uncomment if SD card hardware present on this hardware (e.g., Core-Compute module with SD add-on)? Optional; default value is `false`. | ||
# SdStorageSupported: true | ||
# MonoControl: | ||
# # Options allow enabling debug builds or controlling JIT compilation (`--jit` to enable [default], `--interp` to disable). | ||
# Options: --interp --debug | ||
# # Control how the ESP coprocessor will start and operate. | ||
# Coprocessor: | ||
# # Should the ESP32 automatically attempt to connect to an access point at startup? | ||
# # If set to true, wifi.config.yaml credentials must be stored in the device. | ||
# AutomaticallyStartNetwork: true | ||
# | ||
# # Should the ESP32 automatically reconnect to the configured access point? | ||
# AutomaticallyReconnect: true | ||
# | ||
# # Maximum number of retry attempts for connections etc. before an error code is returned. | ||
# MaximumRetryCount: 7 | ||
# # Network configuration. | ||
# Network: | ||
# # Automatically attempt to get the time at startup? | ||
# GetNetworkTimeAtStartup: true | ||
# | ||
# # Time synchronization period in seconds. | ||
# NtpRefreshPeriod: 600 | ||
# | ||
# # Name of the NTP servers. | ||
# NtpServers: | ||
# - 0.pool.ntp.org | ||
# - 1.pool.ntp.org | ||
# - 2.pool.ntp.org | ||
# - 3.pool.ntp.org | ||
# | ||
# # IP addresses of the DNS servers. | ||
# DnsServers: | ||
# - 1.1.1.1 | ||
# - 8.8.8.8 |
8 changes: 8 additions & 0 deletions
8
Meadow_DotNet_SDK/Project_Templates/templates/MeadowApplication/wifi.config.yaml
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,8 @@ | ||
# Uncomment to set the default Wi-Fi credentials. (This file will be processed into secure storage on the ESP32 and then deleted from the device.) | ||
# To learn more about these config options, including custom application configuration settings, check out the Application Settings Configuration documentation. | ||
# http://developer.wildernesslabs.co/Meadow/Meadow.OS/Configuration/WiFi_Configuration/ | ||
|
||
# # To enable automatically connecting to a default network, make sure to enable the Coprocessor > AutomaticallyStartNetwork value in meadow.config.yaml. | ||
# Credentials: | ||
# Ssid: YourSSID | ||
# Password: SSIDPassword |
18 changes: 18 additions & 0 deletions
18
...K/Project_Templates/templates/MeadowApplicationCoreCompute/.template.config/template.json
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,18 @@ | ||
{ | ||
"$schema": "http://json.schemastore.org/template", | ||
"author": "Wilderness Labs", | ||
"classifications": [ "Meadow", "Console" ], | ||
"name": "Meadow Application (Core-Compute module)", | ||
"identity": "WildernessLabs.Meadow.Templates.BasicCcmApp", | ||
"groupIdentity": "WildernessLabs.Meadow.BasicCcmApp", | ||
"shortName": "MeadowCcm", | ||
"tags": { | ||
"language": "C#", | ||
"type": "project" | ||
}, | ||
"sourceName": "MeadowApplication", | ||
"preferNameDirectory": true, | ||
"primaryOutputs": [ | ||
{ "path": "MeadowApplication.csproj" } | ||
] | ||
} |
14 changes: 14 additions & 0 deletions
14
...w_DotNet_SDK/Project_Templates/templates/MeadowApplicationCoreCompute/.vscode/launch.json
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,14 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Deploy", | ||
"type": "meadow", | ||
"request": "launch", | ||
"preLaunchTask": "meadow: Build" | ||
} | ||
] | ||
} |
31 changes: 31 additions & 0 deletions
31
Meadow_DotNet_SDK/Project_Templates/templates/MeadowApplicationCoreCompute/MeadowApp.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,31 @@ | ||
using Meadow; | ||
using Meadow.Devices; | ||
using Meadow.Foundation; | ||
using Meadow.Foundation.Leds; | ||
using Meadow.Peripherals.Leds; | ||
using System; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
|
||
namespace MeadowApp | ||
{ | ||
// Change F7CoreComputeV2 to F7FeatherV2 (or F7FeatherV1) for Feather boards | ||
public class MeadowApp : App<F7CoreComputeV2> | ||
{ | ||
public override Task Run() | ||
{ | ||
Resolver.Log.Info("Run..."); | ||
|
||
Resolver.Log.Info("Hello, Meadow Core-Compute!"); | ||
|
||
return base.Run(); | ||
} | ||
|
||
public override Task Initialize() | ||
{ | ||
Resolver.Log.Info("Initialize..."); | ||
|
||
return base.Initialize(); | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...Net_SDK/Project_Templates/templates/MeadowApplicationCoreCompute/MeadowApplication.csproj
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,20 @@ | ||
<Project Sdk="Meadow.Sdk/1.1.0"> | ||
<PropertyGroup> | ||
<TargetFramework>netstandard2.1</TargetFramework> | ||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> | ||
<OutputType>Library</OutputType> | ||
<AssemblyName>App</AssemblyName> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Meadow.Foundation" Version="0.*" /> | ||
<PackageReference Include="Meadow.F7" Version="0.*" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Update="meadow.config.yaml"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</None> | ||
<None Update="app.config.yaml"> | ||
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | ||
</None> | ||
</ItemGroup> | ||
</Project> |
20 changes: 20 additions & 0 deletions
20
...Templates/templates/MeadowApplicationCoreCompute/WildernessLabs.MeadowApp.Template.nuspec
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,20 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd"> | ||
<metadata> | ||
<id>WildernessLabs.Meadow.App.Template</id> | ||
<version>0.9.6</version> | ||
<title>Wilderness Labs Meadow App Core-Compute Module Project Template</title> | ||
<authors>Wilderness Labs</authors> | ||
<owners>Wilderness Labs</owners> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<description>Meadow Core-Compute module application template</description> | ||
<copyright>2019-2023</copyright> | ||
<tags>Wilderness Labs Meadow App Sdk dotnet-new templates</tags> | ||
<packageTypes> | ||
<packageType name="Template" /> | ||
</packageTypes> | ||
<dependencies> | ||
<group targetFramework="netstandard2.1" /> | ||
</dependencies> | ||
</metadata> | ||
</package> |
14 changes: 14 additions & 0 deletions
14
Meadow_DotNet_SDK/Project_Templates/templates/MeadowApplicationCoreCompute/app.config.yaml
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,14 @@ | ||
# Uncomment additional options as needed. | ||
# To learn more about these config options, including custom application configuration settings, check out the Application Settings Configuration documentation. | ||
# http://developer.wildernesslabs.co/Meadow/Meadow.OS/Configuration/Application_Settings_Configuration/ | ||
|
||
Lifecycle: | ||
# Control whether Meadow will restart when an unhandled app exception occurs. Combine with Lifecycle > AppFailureRestartDelaySeconds to control restart timing. | ||
RestartOnAppFailure: false | ||
# # When app set to restart automatically on app failure, | ||
# AppFailureRestartDelaySeconds: 15 | ||
|
||
# # Adjust the level of logging detail. | ||
# Logging: | ||
# LogLevel: | ||
# Default: "Trace" |
43 changes: 43 additions & 0 deletions
43
...ow_DotNet_SDK/Project_Templates/templates/MeadowApplicationCoreCompute/meadow.config.yaml
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,43 @@ | ||
# Uncommented these options as needed. | ||
# To learn more about these config options, check out the OS & Device Configuration documentation. | ||
# http://developer.wildernesslabs.co/Meadow/Meadow.OS/Configuration/OS_Device_Configuration/ | ||
|
||
# Device: | ||
# # Name of the device on the network. | ||
# Name: MeadowF7V2_ConfigSample | ||
# | ||
# # Uncomment if SD card hardware present on this hardware (e.g., Core-Compute module with SD add-on)? Optional; default value is `false`. | ||
# SdStorageSupported: true | ||
# MonoControl: | ||
# # Options allow enabling debug builds or controlling JIT compilation (`--jit` to enable [default], `--interp` to disable). | ||
# Options: --interp --debug | ||
# # Control how the ESP coprocessor will start and operate. | ||
# Coprocessor: | ||
# # Should the ESP32 automatically attempt to connect to an access point at startup? | ||
# # If set to true, wifi.config.yaml credentials must be stored in the device. | ||
# AutomaticallyStartNetwork: true | ||
# | ||
# # Should the ESP32 automatically reconnect to the configured access point? | ||
# AutomaticallyReconnect: true | ||
# | ||
# # Maximum number of retry attempts for connections etc. before an error code is returned. | ||
# MaximumRetryCount: 7 | ||
# # Network configuration. | ||
# Network: | ||
# # Automatically attempt to get the time at startup? | ||
# GetNetworkTimeAtStartup: true | ||
# | ||
# # Time synchronization period in seconds. | ||
# NtpRefreshPeriod: 600 | ||
# | ||
# # Name of the NTP servers. | ||
# NtpServers: | ||
# - 0.pool.ntp.org | ||
# - 1.pool.ntp.org | ||
# - 2.pool.ntp.org | ||
# - 3.pool.ntp.org | ||
# | ||
# # IP addresses of the DNS servers. | ||
# DnsServers: | ||
# - 1.1.1.1 | ||
# - 8.8.8.8 |
8 changes: 8 additions & 0 deletions
8
Meadow_DotNet_SDK/Project_Templates/templates/MeadowApplicationCoreCompute/wifi.config.yaml
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,8 @@ | ||
# Uncomment to set the default Wi-Fi credentials. (This file will be processed into secure storage on the ESP32 and then deleted from the device.) | ||
# To learn more about these config options, including custom application configuration settings, check out the Application Settings Configuration documentation. | ||
# http://developer.wildernesslabs.co/Meadow/Meadow.OS/Configuration/WiFi_Configuration/ | ||
|
||
# # To enable automatically connecting to a default network, make sure to enable the Coprocessor > AutomaticallyStartNetwork value in meadow.config.yaml. | ||
# Credentials: | ||
# Ssid: YourSSID | ||
# Password: SSIDPassword |
18 changes: 18 additions & 0 deletions
18
...ect_Templates/templates/MeadowApplicationCoreComputeFSharp/.template.config/template.json
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,18 @@ | ||
{ | ||
"$schema": "http://json.schemastore.org/template", | ||
"author": "Wilderness Labs", | ||
"classifications": [ "Meadow", "Console" ], | ||
"name": "Meadow Application", | ||
"identity": "WildernessLabs.Meadow.Templates.BasicCcmApp.FSharp", | ||
"groupIdentity": "WildernessLabs.Meadow.BasicCcmApp", | ||
"shortName": "MeadowCcm", | ||
"tags": { | ||
"language": "F#", | ||
"type": "project" | ||
}, | ||
"sourceName": "MeadowApplication", | ||
"preferNameDirectory": true, | ||
"primaryOutputs": [ | ||
{ "path": "MeadowApplication.fsproj" } | ||
] | ||
} |
14 changes: 14 additions & 0 deletions
14
...et_SDK/Project_Templates/templates/MeadowApplicationCoreComputeFSharp/.vscode/launch.json
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,14 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Deploy", | ||
"type": "meadow", | ||
"request": "launch", | ||
"preLaunchTask": "meadow: Build" | ||
} | ||
] | ||
} |
Oops, something went wrong.