mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-02-11 10:44:49 +00:00
Added S+ SplusGenericTcpIpClientWithGather helper class
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Crestron.SimplSharp;
|
||||
|
||||
namespace PepperDash.Core
|
||||
{
|
||||
/// <summary>
|
||||
/// A wrapper class that creates a TCP client and gather for use within S+
|
||||
/// </summary>
|
||||
public class SplusGenericTcpIpClientWithGather
|
||||
{
|
||||
public GenericTcpIpClient Client { get; private set; }
|
||||
public CommunicationGather Gather { get; private set; }
|
||||
|
||||
public SplusGenericTcpIpClientWithGather()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// In place of the useless contstructor, for S+ compatability
|
||||
/// </summary>
|
||||
/// <param name="key"></param>
|
||||
/// <param name="host"></param>
|
||||
/// <param name="port"></param>
|
||||
/// <param name="bufferSize"></param>
|
||||
/// <param name="delimiter"></param>
|
||||
public void Initialize(string key, string host, int port, int bufferSize, char delimiter)
|
||||
{
|
||||
Client = new GenericTcpIpClient(key, host, port, bufferSize);
|
||||
Gather = new CommunicationGather(Client, delimiter);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -65,6 +65,7 @@
|
||||
<Compile Include="CommunicationExtras.cs" />
|
||||
<Compile Include="Comm\CommunicationGather.cs" />
|
||||
<Compile Include="Comm\GenericSshClient.cs" />
|
||||
<Compile Include="Comm\GenericTcpIpClientWithGather.cs" />
|
||||
<Compile Include="Comm\SshConfig.cs" />
|
||||
<Compile Include="CoreInterfaces.cs" />
|
||||
<Compile Include="Debug.cs" />
|
||||
@@ -83,7 +84,7 @@
|
||||
<Programmer />
|
||||
<ArchiveFilename>C:\Users\hvolm\Desktop\working\pepperdash-simplsharp-core\Pepperdash Core\Pepperdash Core\bin\PepperDash_Core.clz</ArchiveFilename>
|
||||
<MinFirmwareVersion>1.007.0017</MinFirmwareVersion>
|
||||
<CompiledOn>8/15/2016 1:48:16 PM</CompiledOn>
|
||||
<CompiledOn>8/15/2016 1:54:57 PM</CompiledOn>
|
||||
<AdditionalInfo />
|
||||
<EmbedSourceArchive>False</EmbedSourceArchive>
|
||||
<CopyTo />
|
||||
|
||||
Binary file not shown.
@@ -10,7 +10,7 @@
|
||||
<ArchiveName />
|
||||
</RequiredInfo>
|
||||
<OptionalInfo>
|
||||
<CompiledOn>8/15/2016 1:48:16 PM</CompiledOn>
|
||||
<CompilerRev>1.0.0.23047</CompilerRev>
|
||||
<CompiledOn>8/15/2016 1:54:57 PM</CompiledOn>
|
||||
<CompilerRev>1.0.0.23247</CompilerRev>
|
||||
</OptionalInfo>
|
||||
</ProgramInfo>
|
||||
@@ -1,4 +1,4 @@
|
||||
MainAssembly=PepperDash_Core.dll:23de4ff8ab162b967cd3760f55691182
|
||||
MainAssembly=PepperDash_Core.dll:cedcf6ddcb42b121da13ff559d7178d3
|
||||
MainAssemblyMinFirmwareVersion=1.007.0017
|
||||
ü
|
||||
DependencySource=Newtonsoft.Json.Compact.dll:ea996aa2ec65aa1878e7c9d09e37a896
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user