OpenProtocolNet 属性 |
OpenProtocolNet 类型公开以下成员。
名称 | 说明 | |
---|---|---|
AutoAckControllerMessage |
针对控制器的主动发送的消息,是否无视Ack标记,全部进行返回信号操作,默认为 False,将根据报文里的Ack信号来决定是否返回数据 If the default value is False, the controller will decide whether to return data based on the Ack signal in the packet | |
CommunicationPipe | (继承自 BinaryCommunication。) | |
ConnectionId |
当前连接的唯一ID号,默认为长度20的guid码加随机数组成,方便列表管理,也可以自己指定 (继承自 BinaryCommunication。)The unique ID number of the current connection. The default is a 20-digit guid code plus a random number. | |
ConnectTimeOut |
获取或设置接收服务器反馈的时间,如果为负数,则不接收反馈 (继承自 TcpNetCommunication。)Gets or sets the time to receive server feedback, and if it is a negative number, does not receive feedback | |
IpAddress |
获取或是设置远程服务器的IP地址,如果是本机测试,那么需要设置为127.0.0.1 (继承自 TcpNetCommunication。)Get or set the IP address of the remote server. If it is a local test, then it needs to be set to 127.0.0.1 | |
JobMessage |
任务消息的相关属性,可以用来获取任务的数据,订阅任务,取消订阅任务,选择任务,启动任务。 The relevant properties of task messages can be used to obtain task data, subscribe to tasks, unsubscribe tasks, select tasks, and start tasks. | |
LocalBinding |
获取或设置绑定的本地的IP地址和端口号信息,如果端口设置为0,代表任何可用的端口 (继承自 TcpNetCommunication。)Get or set the bound local IP address and port number information, if the port is set to 0, it means any available port | |
LogNet |
组件的日志工具,支持日志记录,只要实例化后,当前网络的基本信息,就以DEBUG等级进行输出 (继承自 BinaryCommunication。)The component's logging tool supports logging. As long as the instantiation of the basic network information, the output will be output at DEBUG | |
ParameterSetMessages |
参数集合操作的相关属性,可以用来获取参数ID列表,设置数据等操作。 The properties related to parameter collection operations can be used to obtain parameter ID lists, set data, and other operations. | |
Port |
获取或设置服务器的端口号,具体的值需要取决于对方的配置 (继承自 TcpNetCommunication。)Gets or sets the port number of the server. The specific value depends on the configuration of the other party. | |
ReceiveTimeOut |
获取或设置接收服务器反馈的时间,如果为负数,则不接收反馈 (继承自 BinaryCommunication。)Gets or sets the time to receive server feedback, and if it is a negative number, does not receive feedback | |
RevisonOnConnected |
获取或设置初始化连接时 MID0001 命令的版本号,默认为 1,如果设置小于 0,则表示不发送 MID0001 命令。 Get or set the version of the MID0001 command when initializing the connection, the default is 1, if the setting is less than 0, it means that the MID0001 command is not sent. | |
SendBeforeHex |
获取或设置在发送通信报文前追加发送的字节信息,HEX格式,通常用于lora组网时,需要携带 00 00 00 02 四个字节的站地址功能。 (继承自 BinaryCommunication。)Obtain or set the byte information sent before sending communication packets, HEX format, usually used for LORA networking, you need to carry 00 00 00 02 four-byte station address function. | |
SleepTime |
获取或设置在正式接收对方返回数据前的时候,需要休息的时间,当设置为0的时候,不需要休息。 (继承自 BinaryCommunication。)Get or set the time required to rest before officially receiving the data from the other party. When it is set to 0, no rest is required. | |
SocketKeepAliveTime |
获取或设置客户端的Socket的心跳时间信息,这个是Socket底层自动实现的心跳包,不基于协议层实现。默认小于0,不开启心跳检测,如果需要开启,设置 60_000 比较合适,单位毫秒 (继承自 TcpNetCommunication。)Get or set the heartbeat time information of the Socket of the client. This is the heartbeat packet automatically implemented by the bottom layer of the Socket, not based on the protocol layer. The default value is less than 0, and heartbeat detection is not enabled. If you need to enable it, it is more appropriate to set 60_000, in milliseconds. | |
TighteningResultMessages |
拧紧结果消息的操作属性
| |
TimeMessages |
时间消息的属性
| |
ToolMessages |
工具消息的操作属性
|