public class MessageRouter extends Object
| 构造器和说明 |
|---|
MessageRouter()
实例化一个默认的实例对象
instantiate a default instance object |
MessageRouter(byte[] router)
使用完全自定义的消息路由来初始化数据
Use fully custom message routing to initialize data |
MessageRouter(String router)
指定路由来实例化一个对象,使用字符串的表示方式
Specify the route to instantiate an object, using the string representation 路有消息支持两种格式,格式1:1.15.2.18.1.12 格式2: 1.1.2.130.133.139.61.1.0 There are two formats for the channel message, format 1: 1.15.2.18.1.12 format 2: 1.1.2.130.133.139.61.1.0 |
| 限定符和类型 | 方法和说明 |
|---|---|
byte |
getBackplane()
获取背板信息
|
byte[] |
GetRouter()
获取路由信息
|
byte[] |
GetRouterCIP()
获取用于发送的CIP路由报文信息
Get information about CIP routing packets for sending |
byte |
getSlot()
获取槽号信息
|
void |
setBackplane(byte value)
设置背板信息
|
void |
setSlot(byte value) |
public MessageRouter()
public MessageRouter(String router)
router - 路由信息public MessageRouter(byte[] router)
router - 完全自定义的路由消息public byte[] GetRouter()
public byte[] GetRouterCIP()
public byte getBackplane()
public void setBackplane(byte value)
value - 值public byte getSlot()
public void setSlot(byte value)
Copyright © 2022. All rights reserved.