2014-08-01 update 4
This commit is contained in:
@@ -42,6 +42,12 @@ namespace ModBus.Net
|
|||||||
Protocals.Add(linkProtocal.GetType().Name, linkProtocal);
|
Protocals.Add(linkProtocal.GetType().Name, linkProtocal);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public virtual byte[] SendReceive(params object[] content)
|
||||||
|
{
|
||||||
|
int t;
|
||||||
|
return _protocalLinker.SendReceive(ProtocalUnit.TranslateContent(content));
|
||||||
|
}
|
||||||
|
|
||||||
public virtual OutputStruct SendReceive(ProtocalUnit unit, params object[] content)
|
public virtual OutputStruct SendReceive(ProtocalUnit unit, params object[] content)
|
||||||
{
|
{
|
||||||
int t = 0;
|
int t = 0;
|
||||||
|
|||||||
@@ -15,12 +15,11 @@ namespace ModBus.Net
|
|||||||
}
|
}
|
||||||
|
|
||||||
public abstract OutputStruct Unformat(byte[] messageBytes, ref int pos);
|
public abstract OutputStruct Unformat(byte[] messageBytes, ref int pos);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="contents"></param>
|
/// <param name="contents"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public byte[] TranslateContent(params object[] contents)
|
public static byte[] TranslateContent(params object[] contents)
|
||||||
{
|
{
|
||||||
bool b = false;
|
bool b = false;
|
||||||
var newContentsList = new List<object>();
|
var newContentsList = new List<object>();
|
||||||
|
|||||||
Reference in New Issue
Block a user