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