SecsHsmsServerSendByCommand 方法 (PipeSession, SecsMessage, Byte, Byte, SecsValue, Boolean) |
向指定的会话信息发送SECS格式的原始字节数据信息,session 为当前的会话对象,receiveMessage为接收到数据,后续的参数才是真实的返回数据
命名空间:
HslCommunication.Secs
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.1.2.0 (12.1.2.0)
语法 public OperateResult SendByCommand(
PipeSession session,
SecsMessage receiveMessage,
byte stream,
byte function,
SecsValue data,
bool wBit
)
Public Function SendByCommand (
session As PipeSession,
receiveMessage As SecsMessage,
stream As Byte,
function As Byte,
data As SecsValue,
wBit As Boolean
) As OperateResult
public:
OperateResult^ SendByCommand(
PipeSession^ session,
SecsMessage^ receiveMessage,
unsigned char stream,
unsigned char function,
SecsValue^ data,
bool wBit
)
member SendByCommand :
session : PipeSession *
receiveMessage : SecsMessage *
stream : byte *
function : byte *
data : SecsValue *
wBit : bool -> OperateResult
参数
- session
- 类型:HslCommunication.Core.NetPipeSession
当前的会话对象 - receiveMessage
- 类型:HslCommunication.Secs.TypesSecsMessage
接收到的Secs数据 - stream
- 类型:SystemByte
功能码1 - function
- 类型:SystemByte
功能码2 - data
- 类型:HslCommunication.Secs.TypesSecsValue
原始的字节数据 - wBit
- 类型:SystemBoolean
是否必须回复讯息
返回值
类型:
OperateResult是否发送成功
参见