mirror of
https://github.com/PepperDash/EssentialsPluginTemplate.git
synced 2026-03-18 03:34:21 +00:00
Compare commits
4 Commits
docs/versi
...
templateCl
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
788bbd2c6d | ||
|
|
45f5bfb8ef | ||
|
|
4fd9dd739e | ||
|
|
46ba57bac5 |
@@ -9,7 +9,16 @@ jobs:
|
|||||||
getVersion:
|
getVersion:
|
||||||
uses: PepperDash/workflow-templates/.github/workflows/essentialsplugins-getversion.yml@main
|
uses: PepperDash/workflow-templates/.github/workflows/essentialsplugins-getversion.yml@main
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
build-3Series:
|
||||||
|
uses: PepperDash/workflow-templates/.github/workflows/essentialsplugins-3Series-builds.yml@main
|
||||||
|
secrets: inherit
|
||||||
|
needs: getVersion
|
||||||
|
if: needs.getVersion.outputs.newVersion == 'true'
|
||||||
|
with:
|
||||||
|
newVersion: ${{ needs.getVersion.outputs.newVersion }}
|
||||||
|
version: ${{ needs.getVersion.outputs.version }}
|
||||||
|
tag: ${{ needs.getVersion.outputs.tag }}
|
||||||
|
channel: ${{ needs.getVersion.outputs.channel }}
|
||||||
build-4Series:
|
build-4Series:
|
||||||
uses: PepperDash/workflow-templates/.github/workflows/essentialsplugins-4Series-builds.yml@main
|
uses: PepperDash/workflow-templates/.github/workflows/essentialsplugins-4Series-builds.yml@main
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|||||||
@@ -1,14 +0,0 @@
|
|||||||
|
|
||||||
name: Generate README
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches-ignore:
|
|
||||||
- 'robot-docs'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
call-update-readme:
|
|
||||||
uses: PepperDash/workflow-templates/.github/workflows/update-readme.yml@main
|
|
||||||
with:
|
|
||||||
target-branch: ${{ github.ref_name }}
|
|
||||||
|
|
||||||
@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
|
|||||||
# Visual Studio Version 17
|
# Visual Studio Version 17
|
||||||
VisualStudioVersion = 17.11.35327.3
|
VisualStudioVersion = 17.11.35327.3
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "epi-make-model.4Series", "src\epi-make-model.4Series.csproj", "{52E6E0A0-A710-4B5F-AF52-08816F5C99BB}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PDT.EssentialsPluginTemplate.EPI.4Series.", "src\PDT.EssentialsPluginTemplate.EPI.4Series..csproj", "{52E6E0A0-A710-4B5F-AF52-08816F5C99BB}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
@@ -57,4 +57,4 @@ In the solution folder is a file named "PDT.EssentialsPluginTemplate.nuspec"
|
|||||||
|
|
||||||
There is no longer a requirement to adjust workflow files for nuget generation for private and public repositories. This is now handled automatically in the workflow.
|
There is no longer a requirement to adjust workflow files for nuget generation for private and public repositories. This is now handled automatically in the workflow.
|
||||||
|
|
||||||
__If you do not make these changes to the nuspec file, the project will not generate a nuget package__
|
__If you do not make these changes to the nuspec file, the project will not generate a nuget package__
|
||||||
@@ -1,110 +0,0 @@
|
|||||||

|
|
||||||
|
|
||||||
# Upgrading an EPI: Essentials v1.x → v2.x
|
|
||||||
|
|
||||||
## Preparation
|
|
||||||
|
|
||||||
1. **Clone the Template Repo referred to as TR** to your local machine.
|
|
||||||
- [EssentialsPluginTemplate](https://github.com/PepperDash/EssentialsPluginTemplate)
|
|
||||||
2. **Checkout `main` branch** in the TR.
|
|
||||||
|
|
||||||
## Branching
|
|
||||||
|
|
||||||
4. In your EPI repo:
|
|
||||||
- Confirm it does **not already support Essentials v2.x**.
|
|
||||||
- Ensure there is **no existing 4-series update branch**.
|
|
||||||
- Create a new branch (e.g., `feature/4-series-updates`) from `main`.
|
|
||||||
|
|
||||||
## Upgrade Steps
|
|
||||||
|
|
||||||
5. In the new branch:
|
|
||||||
- **Replace** EPI `.github` files/folders with those from TR as needed.
|
|
||||||
- *Note:* Retain any custom workflows if required. Consult with PepperDash Team if unsure.
|
|
||||||
- **Copy** the following from TR to EPI:
|
|
||||||
- `.releaserc.json` (root)
|
|
||||||
- `epi-make-model.4Series.sln` (root)
|
|
||||||
- `src/epi-make-model.4Series.csproj` (create `src` folder if missing)
|
|
||||||
- `images` folder (if your `readme.md` lacks the standard logo)
|
|
||||||
- **Initial Commit:** Commit changes, but do **not** push yet.
|
|
||||||
|
|
||||||
6. **If EPI has a `src/*.nuspec` file:**
|
|
||||||
- Record these values from `Nuspec` for later:
|
|
||||||
- `<id>` (Package ID)
|
|
||||||
- `<projectUrl>` (Project URL)
|
|
||||||
- `<title>` (Assembly Title)
|
|
||||||
|
|
||||||
7. **Open Solution:**
|
|
||||||
- Open `epi-make-model.4Series.sln` in Visual Studio 2022.
|
|
||||||
- If errors occur, ensure the `.csproj` file is located within `src` folder.
|
|
||||||
|
|
||||||
8. **Update Project Properties:**
|
|
||||||
- In `src/epi-make-model.4Series.csproj`, update:
|
|
||||||
- `AssemblyTitle` (from nuspec `<title>`)
|
|
||||||
- `RootNamespace` (from existing EPI, device namespace actual)
|
|
||||||
- `PackageProjectUrl` (from nuspec `<projectUrl>`)
|
|
||||||
- **Rename `make-model` build path references shown below:**
|
|
||||||
|
|
||||||

|
|
||||||
- **Add runtime exclusion:**
|
|
||||||
Add `<ExcludeAssets>runtime</ExcludeAssets>` to the PepperDash Essentials `PackageReference`.
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
9. **Copy Build Files:**
|
|
||||||
- Copy `src/Directory.Build.props` and `src/Directory.Build.targets` from TR.
|
|
||||||
- Update `RepositoryUrl` in `Directory.Build.props` to match nuspec `PackageProjectUrl`.
|
|
||||||
- Remove "template" text from `<Product>` in `Directory.Build.props` as needed.
|
|
||||||
|
|
||||||
10. **Clean Up:**
|
|
||||||
- Delete old Visual Studio 2008 files: `.sln`, `.suo`, `.nuspec`, `.csproj`, `.csproj.user`, `.projectinfo`.
|
|
||||||
- Ensure file structure matches below example:
|
|
||||||
```
|
|
||||||
├── src/
|
|
||||||
│ ├── Directory.Build.props
|
|
||||||
│ ├── Directory.Build.tagets
|
|
||||||
│ ├── *.3Series.csproj
|
|
||||||
│ └── *.4Series.csproj
|
|
||||||
├── .releaserc.json
|
|
||||||
├── *.3Series.sln
|
|
||||||
├── *.4Series.sln
|
|
||||||
├── LICENSE.md
|
|
||||||
└── README.md
|
|
||||||
```
|
|
||||||
|
|
||||||
11. **Rename Solution/Project** as needed.
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
12. **Update Project References and Dependencies**
|
|
||||||
- Remove old PepperDash Essentials dependency.
|
|
||||||
- Add PepperDash Essentials v2.x dependency via Visual Studio 2022 > Project > `Manage Nuget Packages`.
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
13. **Update Factory Class:**
|
|
||||||
Set `MinimumEssentialsFrameworkVersion` to match the Essentials version dependency.
|
|
||||||
|
|
||||||
14. **Build Solution:**
|
|
||||||
Ensure solution compiles (warnings about obsolete `Debug.Console` calls are OK).
|
|
||||||
|
|
||||||
15. **Update Debug Calls:**
|
|
||||||
Replace `Debug.Console` with `Debug.Log` methods as appropriate (see table).
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
## Completion Checklist
|
|
||||||
|
|
||||||
- [ ] EPI compiles with **no warnings**.
|
|
||||||
- [ ] **Obsolete methods** updated to modern equivalents.
|
|
||||||
- [ ] **Workflows** complete successfully; packages generated via GitHub and NuGet.org.
|
|
||||||
- [ ] `readme.md` includes:
|
|
||||||
- Usage/setup instructions
|
|
||||||
- Example SIMPL Windows bridge joinmap
|
|
||||||
- Example device communication structure/properties
|
|
||||||
- [ ] EPI tested against full release Essentials version.
|
|
||||||
- [ ] EPI tested by another developer.
|
|
||||||
- [ ] Full release of EPI.
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
*For questions about workflows or customizations, consult with PepperDash Team.*
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 10.00
|
|
||||||
# Visual Studio 2008
|
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "epi-make-model.3Series", "src\epi-make-model.3Series.csproj", "{9D249E47-8F95-4437-A6BB-563510287AD1}"
|
|
||||||
EndProject
|
|
||||||
Global
|
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
|
||||||
Debug|Any CPU = Debug|Any CPU
|
|
||||||
Release|Any CPU = Release|Any CPU
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
|
||||||
{9D249E47-8F95-4437-A6BB-563510287AD1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
|
||||||
{9D249E47-8F95-4437-A6BB-563510287AD1}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
|
||||||
{9D249E47-8F95-4437-A6BB-563510287AD1}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
|
||||||
{9D249E47-8F95-4437-A6BB-563510287AD1}.Release|Any CPU.Build.0 = Release|Any CPU
|
|
||||||
EndGlobalSection
|
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
|
||||||
HideSolutionNode = FALSE
|
|
||||||
EndGlobalSection
|
|
||||||
EndGlobal
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 16 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 85 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 27 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 40 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 28 KiB |
@@ -1,3 +1,3 @@
|
|||||||
<packages>
|
<packages>
|
||||||
<package id="PepperDashEssentials" version="1.16.1" targetFramework="net35" allowedVersions="[1.0,2.0)"/>
|
<package id="PepperDashEssentials" version="1.10.2" targetFramework="net35" allowedVersions="[1.0,2.0)"/>
|
||||||
</packages>
|
</packages>
|
||||||
@@ -31,4 +31,4 @@
|
|||||||
"channel": "replace-me-prerelease"
|
"channel": "replace-me-prerelease"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -2,14 +2,14 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Version>1.0.0-local</Version>
|
<Version>1.0.0-local</Version>
|
||||||
<InformationalVersion>$(Version)</InformationalVersion>
|
<InformationalVersion>$(Version)</InformationalVersion>
|
||||||
<Authors>PepperDash Technology</Authors>
|
<Authors>PepperDash Technologies</Authors>
|
||||||
<Company>PepperDash Technology</Company>
|
<Company>PepperDash Technologies</Company>
|
||||||
<Product>PepperDash Essentials Plugin Template</Product>
|
<Product>PepperDash Essentials Plugin Template</Product>
|
||||||
<Copyright>Copyright © 2025</Copyright>
|
<Copyright>Copyright © 2024</Copyright>
|
||||||
<RepositoryUrl>https://github.com/PepperDash/EssentialsPluginTemplate.git</RepositoryUrl>
|
<RepositoryUrl>https://github.com/PepperDash/EssentialsPluginTemplate.git</RepositoryUrl>
|
||||||
<RepositoryType>git</RepositoryType>
|
<RepositoryType>git</RepositoryType>
|
||||||
<PackageTags>Crestron; 4series</PackageTags>
|
<PackageTags>Crestron; 4series</PackageTags>
|
||||||
<PackageOutputPath>..\output</PackageOutputPath>
|
<PackageOutputPath>../output</PackageOutputPath>
|
||||||
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
|
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
|
||||||
<PackageLicenseFile>LICENSE.md</PackageLicenseFile>
|
<PackageLicenseFile>LICENSE.md</PackageLicenseFile>
|
||||||
<PackageReadmeFile>README.md</PackageReadmeFile>
|
<PackageReadmeFile>README.md</PackageReadmeFile>
|
||||||
|
|||||||
@@ -1,101 +1,101 @@
|
|||||||
using PepperDash.Essentials.Core;
|
using PepperDash.Essentials.Core;
|
||||||
|
|
||||||
namespace PepperDash.Essentials.Plugin
|
namespace EssentialsPluginTemplate
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Plugin device Bridge Join Map
|
/// Plugin device Bridge Join Map
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// Rename the class to match the device plugin being developed. Reference Essentials JoinMaps, if one exists for the device plugin being developed
|
/// Rename the class to match the device plugin being developed. Reference Essentials JoinMaps, if one exists for the device plugin being developed
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
/// <see cref="PepperDash.Essentials.Core.Bridges"/>
|
/// <see cref="PepperDash.Essentials.Core.Bridges"/>
|
||||||
/// <example>
|
/// <example>
|
||||||
/// "EssentialsPluginBridgeJoinMapTemplate" renamed to "SamsungMdcBridgeJoinMap"
|
/// "EssentialsPluginBridgeJoinMapTemplate" renamed to "SamsungMdcBridgeJoinMap"
|
||||||
/// </example>
|
/// </example>
|
||||||
public class EssentialsPluginTemplateBridgeJoinMap : JoinMapBaseAdvanced
|
public class EssentialsPluginTemplateBridgeJoinMap : JoinMapBaseAdvanced
|
||||||
{
|
{
|
||||||
#region Digital
|
#region Digital
|
||||||
|
|
||||||
// TODO [ ] Add digital joins below plugin being developed
|
// TODO [ ] Add digital joins below plugin being developed
|
||||||
|
|
||||||
[JoinName("IsOnline")]
|
[JoinName("IsOnline")]
|
||||||
public JoinDataComplete IsOnline = new JoinDataComplete(
|
public JoinDataComplete IsOnline = new JoinDataComplete(
|
||||||
new JoinData
|
new JoinData
|
||||||
{
|
{
|
||||||
JoinNumber = 1,
|
JoinNumber = 1,
|
||||||
JoinSpan = 1
|
JoinSpan = 1
|
||||||
},
|
},
|
||||||
new JoinMetadata
|
new JoinMetadata
|
||||||
{
|
{
|
||||||
Description = "Is Online",
|
Description = "Is Online",
|
||||||
JoinCapabilities = eJoinCapabilities.ToSIMPL,
|
JoinCapabilities = eJoinCapabilities.ToSIMPL,
|
||||||
JoinType = eJoinType.Digital
|
JoinType = eJoinType.Digital
|
||||||
});
|
});
|
||||||
|
|
||||||
[JoinName("Connect")]
|
[JoinName("Connect")]
|
||||||
public JoinDataComplete Connect = new JoinDataComplete(
|
public JoinDataComplete Connect = new JoinDataComplete(
|
||||||
new JoinData
|
new JoinData
|
||||||
{
|
{
|
||||||
JoinNumber = 2,
|
JoinNumber = 2,
|
||||||
JoinSpan = 1
|
JoinSpan = 1
|
||||||
},
|
},
|
||||||
new JoinMetadata
|
new JoinMetadata
|
||||||
{
|
{
|
||||||
Description = "Connect (Held)/Disconnect (Release) & corresponding feedback",
|
Description = "Connect (Held)/Disconnect (Release) & corresponding feedback",
|
||||||
JoinCapabilities = eJoinCapabilities.ToFromSIMPL,
|
JoinCapabilities = eJoinCapabilities.ToFromSIMPL,
|
||||||
JoinType = eJoinType.Digital
|
JoinType = eJoinType.Digital
|
||||||
});
|
});
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
#region Analog
|
#region Analog
|
||||||
|
|
||||||
// TODO [ ] Add analog joins below plugin being developed
|
// TODO [ ] Add analog joins below plugin being developed
|
||||||
|
|
||||||
[JoinName("Status")]
|
[JoinName("Status")]
|
||||||
public JoinDataComplete Status = new JoinDataComplete(
|
public JoinDataComplete Status = new JoinDataComplete(
|
||||||
new JoinData
|
new JoinData
|
||||||
{
|
{
|
||||||
JoinNumber = 1,
|
JoinNumber = 1,
|
||||||
JoinSpan = 1
|
JoinSpan = 1
|
||||||
},
|
},
|
||||||
new JoinMetadata
|
new JoinMetadata
|
||||||
{
|
{
|
||||||
Description = "Socket Status",
|
Description = "Socket Status",
|
||||||
JoinCapabilities = eJoinCapabilities.ToSIMPL,
|
JoinCapabilities = eJoinCapabilities.ToSIMPL,
|
||||||
JoinType = eJoinType.Analog
|
JoinType = eJoinType.Analog
|
||||||
});
|
});
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
#region Serial
|
#region Serial
|
||||||
|
|
||||||
// TODO [ ] Add serial joins below plugin being developed
|
// TODO [ ] Add serial joins below plugin being developed
|
||||||
|
|
||||||
public JoinDataComplete DeviceName = new JoinDataComplete(
|
public JoinDataComplete DeviceName = new JoinDataComplete(
|
||||||
new JoinData
|
new JoinData
|
||||||
{
|
{
|
||||||
JoinNumber = 1,
|
JoinNumber = 1,
|
||||||
JoinSpan = 1
|
JoinSpan = 1
|
||||||
},
|
},
|
||||||
new JoinMetadata
|
new JoinMetadata
|
||||||
{
|
{
|
||||||
Description = "Device Name",
|
Description = "Device Name",
|
||||||
JoinCapabilities = eJoinCapabilities.ToSIMPL,
|
JoinCapabilities = eJoinCapabilities.ToSIMPL,
|
||||||
JoinType = eJoinType.Serial
|
JoinType = eJoinType.Serial
|
||||||
});
|
});
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Plugin device BridgeJoinMap constructor
|
/// Plugin device BridgeJoinMap constructor
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="joinStart">This will be the join it starts on the EISC bridge</param>
|
/// <param name="joinStart">This will be the join it starts on the EISC bridge</param>
|
||||||
public EssentialsPluginTemplateBridgeJoinMap(uint joinStart)
|
public EssentialsPluginTemplateBridgeJoinMap(uint joinStart)
|
||||||
: base(joinStart, typeof(EssentialsPluginTemplateBridgeJoinMap))
|
: base(joinStart, typeof(EssentialsPluginTemplateBridgeJoinMap))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using PepperDash.Essentials.Core;
|
using PepperDash.Essentials.Core;
|
||||||
|
|
||||||
namespace PepperDash.Essentials.Plugin
|
namespace EssentialsPluginTemplate
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Plugin device configuration object
|
/// Plugin device configuration object
|
||||||
@@ -1,298 +1,256 @@
|
|||||||
// For Basic SIMPL# Classes
|
using Crestron.SimplSharpPro.DeviceSupport;
|
||||||
// For Basic SIMPL#Pro classes
|
using PepperDash.Core;
|
||||||
|
using PepperDash.Essentials.Core;
|
||||||
using Crestron.SimplSharpPro.DeviceSupport;
|
using PepperDash.Essentials.Core.Bridges;
|
||||||
using PepperDash.Core;
|
using PepperDash.Essentials.Core.Queues;
|
||||||
using PepperDash.Essentials.Core;
|
|
||||||
using PepperDash.Essentials.Core.Bridges;
|
|
||||||
using PepperDash.Essentials.Core.Queues;
|
namespace EssentialsPluginTemplate
|
||||||
|
{
|
||||||
namespace PepperDash.Essentials.Plugin
|
/// <summary>
|
||||||
{
|
/// Plugin device template for third party devices that use IBasicCommunication
|
||||||
/// <summary>
|
/// </summary>
|
||||||
/// Plugin device template for third party devices that use IBasicCommunication
|
/// <remarks>
|
||||||
/// </summary>
|
/// Rename the class to match the device plugin being developed.
|
||||||
/// <remarks>
|
/// </remarks>
|
||||||
/// Rename the class to match the device plugin being developed.
|
/// <example>
|
||||||
/// </remarks>
|
/// "EssentialsPluginDeviceTemplate" renamed to "SamsungMdcDevice"
|
||||||
/// <example>
|
/// </example>
|
||||||
/// "EssentialsPluginDeviceTemplate" renamed to "SamsungMdcDevice"
|
public class EssentialsPluginTemplateDevice : EssentialsBridgeableDevice
|
||||||
/// </example>
|
{
|
||||||
public class EssentialsPluginTemplateDevice : EssentialsBridgeableDevice
|
private EssentialsPluginTemplateConfigObject _config;
|
||||||
{
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// It is often desirable to store the config
|
/// Provides a queue and dedicated worker thread for processing feedback messages from a device.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private EssentialsPluginTemplateConfigObject _config;
|
private GenericQueue ReceiveQueue;
|
||||||
|
|
||||||
/// <summary>
|
#region IBasicCommunication Properties and Constructor. Remove if not needed.
|
||||||
/// Provides a queue and dedicated worker thread for processing feedback messages from a device.
|
|
||||||
/// </summary>
|
private readonly IBasicCommunication _comms;
|
||||||
private GenericQueue ReceiveQueue;
|
private readonly GenericCommunicationMonitor _commsMonitor;
|
||||||
|
private readonly CommunicationGather _commsGather;
|
||||||
#region IBasicCommunication Properties and Constructor. Remove if not needed.
|
|
||||||
|
/// <summary>
|
||||||
// TODO [ ] Add, modify, remove properties and fields as needed for the plugin being developed
|
/// Set this value to that of the delimiter used by the API (if applicable)
|
||||||
private readonly IBasicCommunication _comms;
|
/// </summary>
|
||||||
private readonly GenericCommunicationMonitor _commsMonitor;
|
private const string CommsDelimiter = "\r";
|
||||||
|
private byte[] _commsByteBuffer = { };
|
||||||
// _comms gather for ASCII based API's
|
|
||||||
// TODO [ ] If not using an ASCII based API, delete the properties below
|
|
||||||
private readonly CommunicationGather _commsGather;
|
|
||||||
|
/// <summary>
|
||||||
/// <summary>
|
/// Connects/disconnects the comms of the plugin device
|
||||||
/// Set this value to that of the delimiter used by the API (if applicable)
|
/// </summary>
|
||||||
/// </summary>
|
/// <remarks>
|
||||||
private const string CommsDelimiter = "\r";
|
/// triggers the _comms.Connect/Disconnect as well as thee comms monitor start/stop
|
||||||
|
/// </remarks>
|
||||||
// _comms byte buffer for HEX/byte based API's
|
public bool Connect
|
||||||
// TODO [ ] If not using an HEX/byte based API, delete the properties below
|
{
|
||||||
private byte[] _commsByteBuffer = { };
|
get { return _comms.IsConnected; }
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if (value)
|
||||||
/// <summary>
|
{
|
||||||
/// Connects/disconnects the comms of the plugin device
|
_comms.Connect();
|
||||||
/// </summary>
|
_commsMonitor.Start();
|
||||||
/// <remarks>
|
}
|
||||||
/// triggers the _comms.Connect/Disconnect as well as thee comms monitor start/stop
|
else
|
||||||
/// </remarks>
|
{
|
||||||
public bool Connect
|
_comms.Disconnect();
|
||||||
{
|
_commsMonitor.Stop();
|
||||||
get { return _comms.IsConnected; }
|
}
|
||||||
set
|
}
|
||||||
{
|
}
|
||||||
if (value)
|
|
||||||
{
|
/// <summary>
|
||||||
_comms.Connect();
|
/// Reports connect feedback through the bridge
|
||||||
_commsMonitor.Start();
|
/// </summary>
|
||||||
}
|
public BoolFeedback ConnectFeedback { get; private set; }
|
||||||
else
|
|
||||||
{
|
/// <summary>
|
||||||
_comms.Disconnect();
|
/// Reports online feedback through the bridge
|
||||||
_commsMonitor.Stop();
|
/// </summary>
|
||||||
}
|
public BoolFeedback OnlineFeedback { get; private set; }
|
||||||
}
|
|
||||||
}
|
/// <summary>
|
||||||
|
/// Reports socket status feedback through the bridge
|
||||||
/// <summary>
|
/// </summary>
|
||||||
/// Reports connect feedback through the bridge
|
public IntFeedback StatusFeedback { get; private set; }
|
||||||
/// </summary>
|
|
||||||
public BoolFeedback ConnectFeedback { get; private set; }
|
/// <summary>
|
||||||
|
/// Plugin device constructor for devices that need IBasicCommunication
|
||||||
/// <summary>
|
/// </summary>
|
||||||
/// Reports online feedback through the bridge
|
/// <param name="key"></param>
|
||||||
/// </summary>
|
/// <param name="name"></param>
|
||||||
public BoolFeedback OnlineFeedback { get; private set; }
|
/// <param name="config"></param>
|
||||||
|
/// <param name="comms"></param>
|
||||||
/// <summary>
|
public EssentialsPluginTemplateDevice(string key, string name, EssentialsPluginTemplateConfigObject config, IBasicCommunication comms)
|
||||||
/// Reports socket status feedback through the bridge
|
: base(key, name)
|
||||||
/// </summary>
|
{
|
||||||
public IntFeedback StatusFeedback { get; private set; }
|
Debug.Console(0, this, "Constructing new {0} instance", name);
|
||||||
|
|
||||||
/// <summary>
|
_config = config;
|
||||||
/// Plugin device constructor for devices that need IBasicCommunication
|
|
||||||
/// </summary>
|
ReceiveQueue = new GenericQueue(key + "-rxqueue");
|
||||||
/// <param name="key"></param>
|
|
||||||
/// <param name="name"></param>
|
ConnectFeedback = new BoolFeedback(() => Connect);
|
||||||
/// <param name="config"></param>
|
OnlineFeedback = new BoolFeedback(() => _commsMonitor.IsOnline);
|
||||||
/// <param name="comms"></param>
|
StatusFeedback = new IntFeedback(() => (int)_commsMonitor.Status);
|
||||||
public EssentialsPluginTemplateDevice(string key, string name, EssentialsPluginTemplateConfigObject config, IBasicCommunication comms)
|
|
||||||
: base(key, name)
|
_comms = comms;
|
||||||
{
|
_commsMonitor = new GenericCommunicationMonitor(this, _comms, _config.PollTimeMs, _config.WarningTimeoutMs, _config.ErrorTimeoutMs, Poll);
|
||||||
Debug.Console(0, this, "Constructing new {0} instance", name);
|
|
||||||
|
var socket = _comms as ISocketStatus;
|
||||||
// TODO [ ] Update the constructor as needed for the plugin device being developed
|
if (socket != null)
|
||||||
|
{
|
||||||
_config = config;
|
socket.ConnectionChange += socket_ConnectionChange;
|
||||||
|
Connect = true;
|
||||||
ReceiveQueue = new GenericQueue(key + "-rxqueue"); // If you need to set the thread priority, use one of the available overloaded constructors.
|
}
|
||||||
|
|
||||||
ConnectFeedback = new BoolFeedback(() => Connect);
|
#region Communication data event handlers. Comment out any that don't apply to the API type
|
||||||
OnlineFeedback = new BoolFeedback(() => _commsMonitor.IsOnline);
|
|
||||||
StatusFeedback = new IntFeedback(() => (int)_commsMonitor.Status);
|
_commsGather = new CommunicationGather(_comms, CommsDelimiter);
|
||||||
|
_commsGather.LineReceived += Handle_LineRecieved;
|
||||||
_comms = comms;
|
_comms.BytesReceived += Handle_BytesReceived;
|
||||||
_commsMonitor = new GenericCommunicationMonitor(this, _comms, _config.PollTimeMs, _config.WarningTimeoutMs, _config.ErrorTimeoutMs, Poll);
|
_comms.TextReceived += Handle_TextReceived;
|
||||||
|
|
||||||
var socket = _comms as ISocketStatus;
|
#endregion
|
||||||
if (socket != null)
|
}
|
||||||
{
|
|
||||||
// device comms is IP **ELSE** device comms is RS232
|
|
||||||
socket.ConnectionChange += socket_ConnectionChange;
|
private void socket_ConnectionChange(object sender, GenericSocketStatusChageEventArgs args)
|
||||||
Connect = true;
|
{
|
||||||
}
|
if (ConnectFeedback != null)
|
||||||
|
ConnectFeedback.FireUpdate();
|
||||||
#region Communication data event handlers. Comment out any that don't apply to the API type
|
|
||||||
|
if (StatusFeedback != null)
|
||||||
// Only one of the below handlers should be necessary.
|
StatusFeedback.FireUpdate();
|
||||||
|
}
|
||||||
// _comms gather for any API that has a defined delimiter
|
|
||||||
// TODO [ ] If not using an ASCII based API, remove the line below
|
private void Handle_LineRecieved(object sender, GenericCommMethodReceiveTextArgs args)
|
||||||
_commsGather = new CommunicationGather(_comms, CommsDelimiter);
|
{
|
||||||
_commsGather.LineReceived += Handle_LineRecieved;
|
ReceiveQueue.Enqueue(new ProcessStringMessage(args.Text, ProcessFeedbackMessage));
|
||||||
|
}
|
||||||
// _comms byte buffer for HEX/byte based API's with no delimiter
|
|
||||||
// TODO [ ] If not using an HEX/byte based API, remove the line below
|
private void Handle_BytesReceived(object sender, GenericCommMethodReceiveBytesArgs args)
|
||||||
_comms.BytesReceived += Handle_BytesReceived;
|
{
|
||||||
|
throw new System.NotImplementedException();
|
||||||
// _comms byte buffer for HEX/byte based API's with no delimiter
|
}
|
||||||
// TODO [ ] If not using an HEX/byte based API, remove the line below
|
|
||||||
_comms.TextReceived += Handle_TextReceived;
|
void Handle_TextReceived(object sender, GenericCommMethodReceiveTextArgs e)
|
||||||
|
{
|
||||||
#endregion
|
throw new System.NotImplementedException();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
private void socket_ConnectionChange(object sender, GenericSocketStatusChageEventArgs args)
|
/// This method should perform any necessary parsing of feedback messages from the device
|
||||||
{
|
/// </summary>
|
||||||
if (ConnectFeedback != null)
|
/// <param name="message"></param>
|
||||||
ConnectFeedback.FireUpdate();
|
void ProcessFeedbackMessage(string message)
|
||||||
|
{
|
||||||
if (StatusFeedback != null)
|
throw new System.NotImplementedException();
|
||||||
StatusFeedback.FireUpdate();
|
}
|
||||||
}
|
|
||||||
|
/// <summary>
|
||||||
// TODO [ ] If not using an API with a delimeter, delete the method below
|
/// Sends text to the device plugin comms
|
||||||
private void Handle_LineRecieved(object sender, GenericCommMethodReceiveTextArgs args)
|
/// </summary>
|
||||||
{
|
/// <remarks>
|
||||||
// TODO [ ] Implement method
|
/// Can be used to test commands with the device plugin using the DEVPROPS and DEVJSON console commands
|
||||||
|
/// </remarks>
|
||||||
// Enqueues the message to be processed in a dedicated thread, but the specified method
|
/// <param name="text">Command to be sent</param>
|
||||||
ReceiveQueue.Enqueue(new ProcessStringMessage(args.Text, ProcessFeedbackMessage));
|
public void SendText(string text)
|
||||||
}
|
{
|
||||||
|
if (string.IsNullOrEmpty(text)) return;
|
||||||
// TODO [ ] If not using an HEX/byte based API with no delimeter, delete the method below
|
|
||||||
private void Handle_BytesReceived(object sender, GenericCommMethodReceiveBytesArgs args)
|
_comms.SendText($"{text}{CommsDelimiter}");
|
||||||
{
|
}
|
||||||
// TODO [ ] Implement method
|
|
||||||
throw new System.NotImplementedException();
|
/// <summary>
|
||||||
}
|
/// Sends bytes to the device plugin comms
|
||||||
|
/// </summary>
|
||||||
// TODO [ ] If not using an ASCII based API with no delimeter, delete the method below
|
/// <remarks>
|
||||||
void Handle_TextReceived(object sender, GenericCommMethodReceiveTextArgs e)
|
/// Can be used to test commands with the device plugin using the DEVPROPS and DEVJSON console commands
|
||||||
{
|
/// </remarks>
|
||||||
// TODO [ ] Implement method
|
/// <param name="bytes">Bytes to be sent</param>
|
||||||
throw new System.NotImplementedException();
|
public void SendBytes(byte[] bytes)
|
||||||
}
|
{
|
||||||
|
if (bytes == null) return;
|
||||||
/// <summary>
|
|
||||||
/// This method should perform any necessary parsing of feedback messages from the device
|
_comms.SendBytes(bytes);
|
||||||
/// </summary>
|
}
|
||||||
/// <param name="message"></param>
|
|
||||||
void ProcessFeedbackMessage(string message)
|
/// <summary>
|
||||||
{
|
/// Polls the device
|
||||||
|
/// </summary>
|
||||||
}
|
/// <remarks>
|
||||||
|
/// Poll method is used by the communication monitor. Update the poll method as needed for the plugin being developed
|
||||||
|
/// </remarks>
|
||||||
// TODO [ ] If not using an ACII based API, delete the properties below
|
public void Poll()
|
||||||
/// <summary>
|
{
|
||||||
/// Sends text to the device plugin comms
|
throw new System.NotImplementedException();
|
||||||
/// </summary>
|
}
|
||||||
/// <remarks>
|
|
||||||
/// Can be used to test commands with the device plugin using the DEVPROPS and DEVJSON console commands
|
#endregion
|
||||||
/// </remarks>
|
|
||||||
/// <param name="text">Command to be sent</param>
|
|
||||||
public void SendText(string text)
|
#region Overrides of EssentialsBridgeableDevice
|
||||||
{
|
|
||||||
if (string.IsNullOrEmpty(text)) return;
|
/// <summary>
|
||||||
|
/// Links the plugin device to the EISC bridge
|
||||||
_comms.SendText(string.Format("{0}{1}", text, CommsDelimiter));
|
/// </summary>
|
||||||
}
|
/// <param name="trilist"></param>
|
||||||
|
/// <param name="joinStart"></param>
|
||||||
// TODO [ ] If not using an HEX/byte based API, delete the properties below
|
/// <param name="joinMapKey"></param>
|
||||||
/// <summary>
|
/// <param name="bridge"></param>
|
||||||
/// Sends bytes to the device plugin comms
|
public override void LinkToApi(BasicTriList trilist, uint joinStart, string joinMapKey, EiscApiAdvanced bridge)
|
||||||
/// </summary>
|
{
|
||||||
/// <remarks>
|
var joinMap = new EssentialsPluginTemplateBridgeJoinMap(joinStart);
|
||||||
/// Can be used to test commands with the device plugin using the DEVPROPS and DEVJSON console commands
|
|
||||||
/// </remarks>
|
if (bridge != null)
|
||||||
/// <param name="bytes">Bytes to be sent</param>
|
{
|
||||||
public void SendBytes(byte[] bytes)
|
bridge.AddJoinMap(Key, joinMap);
|
||||||
{
|
}
|
||||||
if (bytes == null) return;
|
|
||||||
|
var customJoins = JoinMapHelper.TryGetJoinMapAdvancedForDevice(joinMapKey);
|
||||||
_comms.SendBytes(bytes);
|
|
||||||
}
|
if (customJoins != null)
|
||||||
|
{
|
||||||
/// <summary>
|
joinMap.SetCustomJoinData(customJoins);
|
||||||
/// Polls the device
|
}
|
||||||
/// </summary>
|
|
||||||
/// <remarks>
|
Debug.Console(1, "Linking to Trilist '{0}'", trilist.ID.ToString("X"));
|
||||||
/// Poll method is used by the communication monitor. Update the poll method as needed for the plugin being developed
|
Debug.Console(0, "Linking to Bridge Type {0}", GetType().Name);
|
||||||
/// </remarks>
|
|
||||||
public void Poll()
|
|
||||||
{
|
trilist.SetString(joinMap.DeviceName.JoinNumber, Name);
|
||||||
// TODO [ ] Update Poll method as needed for the plugin being developed
|
|
||||||
// Example: SendText("getstatus");
|
trilist.SetBoolSigAction(joinMap.Connect.JoinNumber, sig => Connect = sig);
|
||||||
throw new System.NotImplementedException();
|
ConnectFeedback.LinkInputSig(trilist.BooleanInput[joinMap.Connect.JoinNumber]);
|
||||||
}
|
|
||||||
|
StatusFeedback.LinkInputSig(trilist.UShortInput[joinMap.Status.JoinNumber]);
|
||||||
#endregion
|
OnlineFeedback.LinkInputSig(trilist.BooleanInput[joinMap.IsOnline.JoinNumber]);
|
||||||
|
|
||||||
|
UpdateFeedbacks();
|
||||||
#region Overrides of EssentialsBridgeableDevice
|
|
||||||
|
trilist.OnlineStatusChange += (o, a) =>
|
||||||
/// <summary>
|
{
|
||||||
/// Links the plugin device to the EISC bridge
|
if (!a.DeviceOnLine) return;
|
||||||
/// </summary>
|
|
||||||
/// <param name="trilist"></param>
|
trilist.SetString(joinMap.DeviceName.JoinNumber, Name);
|
||||||
/// <param name="joinStart"></param>
|
UpdateFeedbacks();
|
||||||
/// <param name="joinMapKey"></param>
|
};
|
||||||
/// <param name="bridge"></param>
|
}
|
||||||
public override void LinkToApi(BasicTriList trilist, uint joinStart, string joinMapKey, EiscApiAdvanced bridge)
|
|
||||||
{
|
private void UpdateFeedbacks()
|
||||||
var joinMap = new EssentialsPluginTemplateBridgeJoinMap(joinStart);
|
{
|
||||||
|
ConnectFeedback.FireUpdate();
|
||||||
// This adds the join map to the collection on the bridge
|
OnlineFeedback.FireUpdate();
|
||||||
if (bridge != null)
|
StatusFeedback.FireUpdate();
|
||||||
{
|
}
|
||||||
bridge.AddJoinMap(Key, joinMap);
|
|
||||||
}
|
#endregion
|
||||||
|
|
||||||
var customJoins = JoinMapHelper.TryGetJoinMapAdvancedForDevice(joinMapKey);
|
}
|
||||||
|
}
|
||||||
if (customJoins != null)
|
|
||||||
{
|
|
||||||
joinMap.SetCustomJoinData(customJoins);
|
|
||||||
}
|
|
||||||
|
|
||||||
Debug.Console(1, "Linking to Trilist '{0}'", trilist.ID.ToString("X"));
|
|
||||||
Debug.Console(0, "Linking to Bridge Type {0}", GetType().Name);
|
|
||||||
|
|
||||||
// TODO [ ] Implement bridge links as needed
|
|
||||||
|
|
||||||
// links to bridge
|
|
||||||
trilist.SetString(joinMap.DeviceName.JoinNumber, Name);
|
|
||||||
|
|
||||||
trilist.SetBoolSigAction(joinMap.Connect.JoinNumber, sig => Connect = sig);
|
|
||||||
ConnectFeedback.LinkInputSig(trilist.BooleanInput[joinMap.Connect.JoinNumber]);
|
|
||||||
|
|
||||||
StatusFeedback.LinkInputSig(trilist.UShortInput[joinMap.Status.JoinNumber]);
|
|
||||||
OnlineFeedback.LinkInputSig(trilist.BooleanInput[joinMap.IsOnline.JoinNumber]);
|
|
||||||
|
|
||||||
UpdateFeedbacks();
|
|
||||||
|
|
||||||
trilist.OnlineStatusChange += (o, a) =>
|
|
||||||
{
|
|
||||||
if (!a.DeviceOnLine) return;
|
|
||||||
|
|
||||||
trilist.SetString(joinMap.DeviceName.JoinNumber, Name);
|
|
||||||
UpdateFeedbacks();
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
private void UpdateFeedbacks()
|
|
||||||
{
|
|
||||||
// TODO [ ] Update as needed for the plugin being developed
|
|
||||||
ConnectFeedback.FireUpdate();
|
|
||||||
OnlineFeedback.FireUpdate();
|
|
||||||
StatusFeedback.FireUpdate();
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,9 +1,9 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Crestron.SimplSharpPro.UI;
|
using PepperDash.Core;
|
||||||
using PepperDash.Core;
|
using PepperDash.Essentials.Core;
|
||||||
using PepperDash.Essentials.Core;
|
using Crestron.SimplSharpPro.UI;
|
||||||
|
|
||||||
namespace PepperDash.Essentials.Plugin
|
namespace EssentialsPluginTemplate
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Plugin device factory for devices that use IBasicCommunication
|
/// Plugin device factory for devices that use IBasicCommunication
|
||||||
@@ -1,99 +0,0 @@
|
|||||||
// For Basic SIMPL# Classes
|
|
||||||
// For Basic SIMPL#Pro classes
|
|
||||||
|
|
||||||
using Crestron.SimplSharpPro;
|
|
||||||
using Crestron.SimplSharpPro.DeviceSupport;
|
|
||||||
using PepperDash.Core;
|
|
||||||
using PepperDash.Essentials.Core;
|
|
||||||
using PepperDash.Essentials.Core.Bridges;
|
|
||||||
|
|
||||||
namespace PepperDash.Essentials.Plugin
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// Plugin device
|
|
||||||
/// </summary>
|
|
||||||
/// <remarks>
|
|
||||||
/// Rename the class to match the device plugin being developed.
|
|
||||||
/// </remarks>
|
|
||||||
/// <example>
|
|
||||||
/// "EssentialsPluginDeviceTemplate" renamed to "SamsungMdcDevice"
|
|
||||||
/// </example>
|
|
||||||
public class EssentialsPluginTemplateCrestronDevice : CrestronGenericBridgeableBaseDevice
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// It is often desirable to store the config
|
|
||||||
/// </summary>
|
|
||||||
private EssentialsPluginTemplateConfigObject _config;
|
|
||||||
|
|
||||||
|
|
||||||
#region Constructor for Devices without IBasicCommunication. Remove if not needed
|
|
||||||
/// <summary>
|
|
||||||
/// Plugin device constructor for Crestron devices
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="key"></param>
|
|
||||||
/// <param name="name"></param>
|
|
||||||
/// <param name="config"></param>
|
|
||||||
/// <param name="hardware"></param>
|
|
||||||
public EssentialsPluginTemplateCrestronDevice(string key, string name, EssentialsPluginTemplateConfigObject config, GenericBase hardware)
|
|
||||||
: base(key, name, hardware)
|
|
||||||
{
|
|
||||||
Debug.Console(0, this, "Constructing new {0} instance", name);
|
|
||||||
|
|
||||||
// The base class takes care of registering the hardware device for you
|
|
||||||
|
|
||||||
// TODO [ ] Update the constructor as needed for the plugin device being developed
|
|
||||||
|
|
||||||
_config = config;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
|
|
||||||
#region Overrides of EssentialsBridgeableDevice
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Links the plugin device to the EISC bridge
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="trilist"></param>
|
|
||||||
/// <param name="joinStart"></param>
|
|
||||||
/// <param name="joinMapKey"></param>
|
|
||||||
/// <param name="bridge"></param>
|
|
||||||
public override void LinkToApi(BasicTriList trilist, uint joinStart, string joinMapKey, EiscApiAdvanced bridge)
|
|
||||||
{
|
|
||||||
var joinMap = new EssentialsPluginTemplateBridgeJoinMap(joinStart);
|
|
||||||
|
|
||||||
// This adds the join map to the collection on the bridge
|
|
||||||
if (bridge != null)
|
|
||||||
{
|
|
||||||
bridge.AddJoinMap(Key, joinMap);
|
|
||||||
}
|
|
||||||
|
|
||||||
var customJoins = JoinMapHelper.TryGetJoinMapAdvancedForDevice(joinMapKey);
|
|
||||||
|
|
||||||
if (customJoins != null)
|
|
||||||
{
|
|
||||||
joinMap.SetCustomJoinData(customJoins);
|
|
||||||
}
|
|
||||||
|
|
||||||
Debug.Console(1, "Linking to Trilist '{0}'", trilist.ID.ToString("X"));
|
|
||||||
Debug.Console(0, "Linking to Bridge Type {0}", GetType().Name);
|
|
||||||
|
|
||||||
// TODO [ ] Implement bridge links as needed
|
|
||||||
|
|
||||||
// links to bridge
|
|
||||||
trilist.SetString(joinMap.DeviceName.JoinNumber, Name);
|
|
||||||
|
|
||||||
trilist.OnlineStatusChange += (o, a) =>
|
|
||||||
{
|
|
||||||
if (!a.DeviceOnLine) return;
|
|
||||||
|
|
||||||
trilist.SetString(joinMap.DeviceName.JoinNumber, Name);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -1,86 +0,0 @@
|
|||||||
using Crestron.SimplSharpPro.DeviceSupport;
|
|
||||||
using PepperDash.Core;
|
|
||||||
using PepperDash.Essentials.Core;
|
|
||||||
using PepperDash.Essentials.Core.Bridges;
|
|
||||||
|
|
||||||
namespace PepperDash.Essentials.Plugin
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// Plugin device template for logic devices that don't communicate outside the program
|
|
||||||
/// </summary>
|
|
||||||
/// <remarks>
|
|
||||||
/// Rename the class to match the device plugin being developed.
|
|
||||||
/// </remarks>
|
|
||||||
/// <example>
|
|
||||||
/// "EssentialsPluginTemplateLogicDevice" renamed to "SamsungMdcDevice"
|
|
||||||
/// </example>
|
|
||||||
public class EssentialsPluginTemplateLogicDevice : EssentialsBridgeableDevice
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// It is often desirable to store the config
|
|
||||||
/// </summary>
|
|
||||||
private EssentialsPluginTemplateConfigObject _config;
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Plugin device constructor
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="key"></param>
|
|
||||||
/// <param name="name"></param>
|
|
||||||
/// <param name="config"></param>
|
|
||||||
public EssentialsPluginTemplateLogicDevice(string key, string name, EssentialsPluginTemplateConfigObject config)
|
|
||||||
: base(key, name)
|
|
||||||
{
|
|
||||||
Debug.Console(0, this, "Constructing new {0} instance", name);
|
|
||||||
|
|
||||||
// TODO [ ] Update the constructor as needed for the plugin device being developed
|
|
||||||
|
|
||||||
_config = config;
|
|
||||||
}
|
|
||||||
|
|
||||||
#region Overrides of EssentialsBridgeableDevice
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Links the plugin device to the EISC bridge
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="trilist"></param>
|
|
||||||
/// <param name="joinStart"></param>
|
|
||||||
/// <param name="joinMapKey"></param>
|
|
||||||
/// <param name="bridge"></param>
|
|
||||||
public override void LinkToApi(BasicTriList trilist, uint joinStart, string joinMapKey, EiscApiAdvanced bridge)
|
|
||||||
{
|
|
||||||
var joinMap = new EssentialsPluginTemplateBridgeJoinMap(joinStart);
|
|
||||||
|
|
||||||
// This adds the join map to the collection on the bridge
|
|
||||||
if (bridge != null)
|
|
||||||
{
|
|
||||||
bridge.AddJoinMap(Key, joinMap);
|
|
||||||
}
|
|
||||||
|
|
||||||
var customJoins = JoinMapHelper.TryGetJoinMapAdvancedForDevice(joinMapKey);
|
|
||||||
|
|
||||||
if (customJoins != null)
|
|
||||||
{
|
|
||||||
joinMap.SetCustomJoinData(customJoins);
|
|
||||||
}
|
|
||||||
|
|
||||||
Debug.Console(1, "Linking to Trilist '{0}'", trilist.ID.ToString("X"));
|
|
||||||
Debug.Console(0, "Linking to Bridge Type {0}", GetType().Name);
|
|
||||||
|
|
||||||
// TODO [ ] Implement bridge links as needed
|
|
||||||
|
|
||||||
// links to bridge
|
|
||||||
trilist.SetString(joinMap.DeviceName.JoinNumber, Name);
|
|
||||||
|
|
||||||
trilist.OnlineStatusChange += (o, a) =>
|
|
||||||
{
|
|
||||||
if (!a.DeviceOnLine) return;
|
|
||||||
|
|
||||||
trilist.SetString(joinMap.DeviceName.JoinNumber, Name);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -4,17 +4,17 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net472</TargetFramework>
|
<TargetFramework>net472</TargetFramework>
|
||||||
<RootNamespace>PepperDash.Essentials.Plugin</RootNamespace>
|
<RootNamespace>PDT.EssentialsPluginTemplate.EPI</RootNamespace>
|
||||||
<Deterministic>false</Deterministic>
|
<Deterministic>false</Deterministic>
|
||||||
<AssemblyTitle>PepperDash.Essentials.Plugin.Make.Model</AssemblyTitle>
|
<AssemblyTitle>PDT.EssentialsPluginTemplate.EPI</AssemblyTitle>
|
||||||
<Company>PepperDash Technology</Company>
|
<Company>PepperDash Technologies</Company>
|
||||||
<Description>This software is a template for a PepperDash Essentials Plugin.</Description>
|
<Description>This software is a template for a PepperDash Essentials Plugin.</Description>
|
||||||
<Copyright>Copyright 2025</Copyright>
|
<Copyright>Copyright 2024</Copyright>
|
||||||
<Version>1.0.0-local</Version>
|
<Version>1.0.0-local</Version>
|
||||||
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
|
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
|
||||||
<InformationalVersion>$(Version)</InformationalVersion>
|
<InformationalVersion>$(Version)</InformationalVersion>
|
||||||
<OutputPath>bin\$(Configuration)\</OutputPath>
|
<OutputPath>4Series\bin\$(Configuration)\</OutputPath>
|
||||||
<Authors>PepperDash Technology</Authors>
|
<Authors>PepperDash Technologies</Authors>
|
||||||
<PackageId>Pepperdash.Essentials.Plugins.Template</PackageId>
|
<PackageId>Pepperdash.Essentials.Plugins.Template</PackageId>
|
||||||
<PackageProjectUrl>https://github.com/PepperDash/EssentialsPluginTemplate.git</PackageProjectUrl>
|
<PackageProjectUrl>https://github.com/PepperDash/EssentialsPluginTemplate.git</PackageProjectUrl>
|
||||||
<PackageTags>crestron 4series essentials plugin template</PackageTags>
|
<PackageTags>crestron 4series essentials plugin template</PackageTags>
|
||||||
@@ -31,20 +31,10 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Remove="epi-make-model.projectinfo" />
|
<None Remove="PDT.EssentialsPluginTemplate.projectinfo" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="PepperDashEssentials" Version="2.0.0" >
|
<PackageReference Include="PepperDashEssentials" Version="2.0.0-beta-2559" />
|
||||||
<ExcludeAssets>runtime</ExcludeAssets>
|
</ItemGroup>
|
||||||
</PackageReference>
|
</Project>
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
<None Remove="../output\epi-make-model.4Series.1.0.0-local.cplz" />
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
<None Remove="../output\epi-make-model.4Series.1.0.0-local.cplz" />
|
|
||||||
</ItemGroup>
|
|
||||||
</Project>
|
|
||||||
@@ -1,115 +1,115 @@
|
|||||||
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Release</Configuration>
|
<Configuration Condition=" '$(Configuration)' == '' ">Release</Configuration>
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
<ProductVersion>9.0.30729</ProductVersion>
|
<ProductVersion>9.0.30729</ProductVersion>
|
||||||
<SchemaVersion>2.0</SchemaVersion>
|
<SchemaVersion>2.0</SchemaVersion>
|
||||||
<ProjectGuid>{9D249E47-8F95-4437-A6BB-563510287AD1}</ProjectGuid>
|
<ProjectGuid>{9D249E47-8F95-4437-A6BB-563510287AD1}</ProjectGuid>
|
||||||
<OutputType>Library</OutputType>
|
<OutputType>Library</OutputType>
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
<RootNamespace>PepperDash.Essentials.Plugin</RootNamespace>
|
<RootNamespace>PDT.EssentialsPluginTemplate.EPI</RootNamespace>
|
||||||
<AssemblyName>MakeModelPlugin</AssemblyName>
|
<AssemblyName>PDT.EssentialsPluginTemplate.EPI</AssemblyName>
|
||||||
<ProjectTypeGuids>{0B4745B0-194B-4BB6-8E21-E9057CA92300};{4D628B5B-2FBC-4AA6-8C16-197242AEB884};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
<ProjectTypeGuids>{0B4745B0-194B-4BB6-8E21-E9057CA92300};{4D628B5B-2FBC-4AA6-8C16-197242AEB884};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||||
<PlatformFamilyName>WindowsCE</PlatformFamilyName>
|
<PlatformFamilyName>WindowsCE</PlatformFamilyName>
|
||||||
<PlatformID>E2BECB1F-8C8C-41ba-B736-9BE7D946A398</PlatformID>
|
<PlatformID>E2BECB1F-8C8C-41ba-B736-9BE7D946A398</PlatformID>
|
||||||
<OSVersion>5.0</OSVersion>
|
<OSVersion>5.0</OSVersion>
|
||||||
<DeployDirSuffix>SmartDeviceProject1</DeployDirSuffix>
|
<DeployDirSuffix>SmartDeviceProject1</DeployDirSuffix>
|
||||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||||
<NativePlatformName>Windows CE</NativePlatformName>
|
<NativePlatformName>Windows CE</NativePlatformName>
|
||||||
<FormFactorID>
|
<FormFactorID>
|
||||||
</FormFactorID>
|
</FormFactorID>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
<AllowedReferenceRelatedFileExtensions>.allowedReferenceRelatedFileExtensions</AllowedReferenceRelatedFileExtensions>
|
<AllowedReferenceRelatedFileExtensions>.allowedReferenceRelatedFileExtensions</AllowedReferenceRelatedFileExtensions>
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
<DebugType>full</DebugType>
|
<DebugType>full</DebugType>
|
||||||
<Optimize>false</Optimize>
|
<Optimize>false</Optimize>
|
||||||
<OutputPath>bin\Debug\</OutputPath>
|
<OutputPath>bin\Debug\</OutputPath>
|
||||||
<DefineConstants>DEBUG;TRACE;</DefineConstants>
|
<DefineConstants>DEBUG;TRACE;</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
<NoStdLib>true</NoStdLib>
|
<NoStdLib>true</NoStdLib>
|
||||||
<NoConfig>true</NoConfig>
|
<NoConfig>true</NoConfig>
|
||||||
<GenerateSerializationAssemblies>off</GenerateSerializationAssemblies>
|
<GenerateSerializationAssemblies>off</GenerateSerializationAssemblies>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
<AllowedReferenceRelatedFileExtensions>.allowedReferenceRelatedFileExtensions</AllowedReferenceRelatedFileExtensions>
|
<AllowedReferenceRelatedFileExtensions>.allowedReferenceRelatedFileExtensions</AllowedReferenceRelatedFileExtensions>
|
||||||
<DebugType>none</DebugType>
|
<DebugType>none</DebugType>
|
||||||
<Optimize>true</Optimize>
|
<Optimize>true</Optimize>
|
||||||
<OutputPath>bin\Release\</OutputPath>
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
<NoStdLib>true</NoStdLib>
|
<NoStdLib>true</NoStdLib>
|
||||||
<NoConfig>true</NoConfig>
|
<NoConfig>true</NoConfig>
|
||||||
<GenerateSerializationAssemblies>off</GenerateSerializationAssemblies>
|
<GenerateSerializationAssemblies>off</GenerateSerializationAssemblies>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="Crestron.SimplSharpPro.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1099c178b3b54c3b, processorArchitecture=MSIL">
|
<Reference Include="Crestron.SimplSharpPro.UI, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1099c178b3b54c3b, processorArchitecture=MSIL">
|
||||||
<SpecificVersion>False</SpecificVersion>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
<HintPath>C:\ProgramData\Crestron\SDK\SSPDevices\Crestron.SimplSharpPro.UI.dll</HintPath>
|
<HintPath>..\..\..\..\ProgramData\Crestron\SDK\SSPDevices\Crestron.SimplSharpPro.UI.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="Essentials Devices Common, Version=1.6.2.33892, Culture=neutral, processorArchitecture=MSIL">
|
<Reference Include="Essentials Devices Common, Version=1.6.2.33892, Culture=neutral, processorArchitecture=MSIL">
|
||||||
<SpecificVersion>False</SpecificVersion>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
<HintPath>..\packages\PepperDashEssentials\lib\net35\Essentials Devices Common.dll</HintPath>
|
<HintPath>..\packages\PepperDashEssentials\lib\net35\Essentials Devices Common.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="mscorlib" />
|
<Reference Include="mscorlib" />
|
||||||
<Reference Include="PepperDashEssentials, Version=1.4.19.29953, Culture=neutral, processorArchitecture=MSIL">
|
<Reference Include="PepperDashEssentials, Version=1.4.19.29953, Culture=neutral, processorArchitecture=MSIL">
|
||||||
<SpecificVersion>False</SpecificVersion>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
<HintPath>..\packages\PepperDashEssentials\lib\net35\PepperDashEssentials.dll</HintPath>
|
<HintPath>..\packages\PepperDashEssentials\lib\net35\PepperDashEssentials.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="PepperDash_Core, Version=1.0.20.28344, Culture=neutral, processorArchitecture=MSIL">
|
<Reference Include="PepperDash_Core, Version=1.0.20.28344, Culture=neutral, processorArchitecture=MSIL">
|
||||||
<SpecificVersion>False</SpecificVersion>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
<HintPath>..\packages\PepperDashEssentials\lib\net35\PepperDash_Core.dll</HintPath>
|
<HintPath>..\packages\PepperDashEssentials\lib\net35\PepperDash_Core.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="PepperDash_Essentials_Core, Version=1.4.19.29946, Culture=neutral, processorArchitecture=MSIL">
|
<Reference Include="PepperDash_Essentials_Core, Version=1.4.19.29946, Culture=neutral, processorArchitecture=MSIL">
|
||||||
<SpecificVersion>False</SpecificVersion>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
<HintPath>..\packages\PepperDashEssentials\lib\net35\PepperDash_Essentials_Core.dll</HintPath>
|
<HintPath>..\packages\PepperDashEssentials\lib\net35\PepperDash_Essentials_Core.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="PepperDash_Essentials_DM, Version=1.3.7177.29951, Culture=neutral, processorArchitecture=MSIL">
|
<Reference Include="PepperDash_Essentials_DM, Version=1.3.7177.29951, Culture=neutral, processorArchitecture=MSIL">
|
||||||
<SpecificVersion>False</SpecificVersion>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
<HintPath>..\packages\PepperDashEssentials\lib\net35\PepperDash_Essentials_DM.dll</HintPath>
|
<HintPath>..\packages\PepperDashEssentials\lib\net35\PepperDash_Essentials_DM.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="SimplSharpCustomAttributesInterface, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1099c178b3b54c3b, processorArchitecture=MSIL">
|
<Reference Include="SimplSharpCustomAttributesInterface, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1099c178b3b54c3b, processorArchitecture=MSIL">
|
||||||
<SpecificVersion>False</SpecificVersion>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
<HintPath>C:\ProgramData\Crestron\SDK\SimplSharpCustomAttributesInterface.dll</HintPath>
|
<HintPath>..\..\..\..\..\..\..\..\..\ProgramData\Crestron\SDK\SimplSharpCustomAttributesInterface.dll</HintPath>
|
||||||
<Private>False</Private>
|
<Private>False</Private>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="SimplSharpHelperInterface, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1099c178b3b54c3b, processorArchitecture=MSIL">
|
<Reference Include="SimplSharpHelperInterface, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1099c178b3b54c3b, processorArchitecture=MSIL">
|
||||||
<SpecificVersion>False</SpecificVersion>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
<HintPath>C:\ProgramData\Crestron\SDK\SimplSharpHelperInterface.dll</HintPath>
|
<HintPath>..\..\..\..\..\..\..\..\..\ProgramData\Crestron\SDK\SimplSharpHelperInterface.dll</HintPath>
|
||||||
<Private>False</Private>
|
<Private>False</Private>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="SimplSharpNewtonsoft, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1099c178b3b54c3b, processorArchitecture=MSIL">
|
<Reference Include="SimplSharpNewtonsoft, Version=1.0.0.0, Culture=neutral, PublicKeyToken=1099c178b3b54c3b, processorArchitecture=MSIL">
|
||||||
<SpecificVersion>False</SpecificVersion>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
<HintPath>C:\ProgramData\Crestron\SDK\SimplSharpNewtonsoft.dll</HintPath>
|
<HintPath>..\..\..\..\..\..\..\..\..\ProgramData\Crestron\SDK\SimplSharpNewtonsoft.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="SimplSharpPro, Version=1.5.3.17, Culture=neutral, PublicKeyToken=1099c178b3b54c3b, processorArchitecture=MSIL">
|
<Reference Include="SimplSharpPro, Version=1.5.3.17, Culture=neutral, PublicKeyToken=1099c178b3b54c3b, processorArchitecture=MSIL">
|
||||||
<SpecificVersion>False</SpecificVersion>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
<HintPath>C:\ProgramData\Crestron\SDK\SimplSharpPro.exe</HintPath>
|
<HintPath>..\..\..\..\..\..\..\..\..\ProgramData\Crestron\SDK\SimplSharpPro.exe</HintPath>
|
||||||
<Private>False</Private>
|
<Private>False</Private>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="SimplSharpReflectionInterface, Version=1.0.5583.25238, Culture=neutral, PublicKeyToken=1099c178b3b54c3b, processorArchitecture=MSIL">
|
<Reference Include="SimplSharpReflectionInterface, Version=1.0.5583.25238, Culture=neutral, PublicKeyToken=1099c178b3b54c3b, processorArchitecture=MSIL">
|
||||||
<SpecificVersion>False</SpecificVersion>
|
<SpecificVersion>False</SpecificVersion>
|
||||||
<HintPath>C:\ProgramData\Crestron\SDK\SimplSharpReflectionInterface.dll</HintPath>
|
<HintPath>..\..\..\..\..\..\..\..\..\ProgramData\Crestron\SDK\SimplSharpReflectionInterface.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
<Reference Include="System.Data" />
|
<Reference Include="System.Data" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="MakeModelCrestronDevice.cs" />
|
<Compile Include="EssentialsPluginTemplateLogicDevice.cs" />
|
||||||
<Compile Include="MakeModelBridgeJoinMap.cs" />
|
<Compile Include="EssentialsPluginTemplateCrestronDevice.cs" />
|
||||||
<Compile Include="MakeModelConfigObject.cs" />
|
<Compile Include="EssentialsPluginTemplateBridgeJoinMap.cs" />
|
||||||
<Compile Include="MakeModelDevice.cs" />
|
<Compile Include="EssentialsPluginTemplateConfigObject.cs" />
|
||||||
<Compile Include="MakeModelFactory.cs" />
|
<Compile Include="EssentialsPluginTemplateFactory.cs" />
|
||||||
<Compile Include="MakeModelLogicDevice.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="EssentialsPluginTemplateDevice.cs" />
|
||||||
<None Include="Properties\ControlSystem.cfg" />
|
<None Include="Properties\ControlSystem.cfg" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildBinPath)\Microsoft.CompactFramework.CSharp.targets" />
|
<Import Project="$(MSBuildBinPath)\Microsoft.CompactFramework.CSharp.targets" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<PostBuildEvent>rem S# Pro preparation will execute after these operations</PostBuildEvent>
|
<PostBuildEvent>rem S# Pro preparation will execute after these operations</PostBuildEvent>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
</Project>
|
</Project>
|
||||||
23
src/PDT.EssentialsPluginTemplate.nuspec
Normal file
23
src/PDT.EssentialsPluginTemplate.nuspec
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<package >
|
||||||
|
<metadata>
|
||||||
|
<id>PDT.EssentialsPluginTemplate</id>
|
||||||
|
<readme>docs\README.md</readme>
|
||||||
|
<version>2.0.2</version>
|
||||||
|
<title>Essentials Plugin Template</title>
|
||||||
|
<authors>PepperDash Technologies</authors>
|
||||||
|
<owners>pepperdash</owners>
|
||||||
|
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
||||||
|
<license type="expression">MIT</license>
|
||||||
|
<projectUrl>https://github.com/PepperDash/EssentialsPluginTemplate</projectUrl>
|
||||||
|
<copyright>Copyright 2022</copyright>
|
||||||
|
<description>This software iserves as a template for generating new Essentials-Compliant plugins</description>
|
||||||
|
<tags>crestron 3series 4series essentials pepperdash pepperdashessentials epi essentials plugin</tags>
|
||||||
|
<repository type="git" url="https://github.com/PepperDash/EssentialsPluginTemplate"/>
|
||||||
|
</metadata>
|
||||||
|
<files>
|
||||||
|
<file src="**" target="lib\net35"/>
|
||||||
|
<file src="**" target="lib\net47"/>
|
||||||
|
<file src="README.md" target="docs\"/>
|
||||||
|
</files>
|
||||||
|
</package>
|
||||||
Reference in New Issue
Block a user