public class ModbusMasterAutoSender extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected static Class<ChannelSender> |
channelSenderClazz |
protected static String |
configFileName |
| 构造器和说明 |
|---|
ModbusMasterAutoSender() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected static List<String> |
parseReqs(List<String> configStrings) |
protected static List<String> |
readConfig(String fileName) |
static void |
sendFunc(ChannelSender sender,
String func,
int address,
boolean value) |
static void |
sendFunc(ChannelSender sender,
String func,
int address,
boolean[] values) |
static void |
sendFunc(ChannelSender sender,
String func,
int address,
int value) |
static void |
sendFunc(ChannelSender sender,
String func,
int address,
int[] values) |
static void |
sendFunc(ChannelSender sender,
String funcString,
String addressStr,
String value) |
static void |
sendRequests(Collection<io.netty.channel.Channel> channels,
List<String> reqs) |
static void |
sendRequests4Auto(Collection<io.netty.channel.Channel> channels,
int sleep) |
protected static Class<ChannelSender> channelSenderClazz
protected static String configFileName
public static void sendRequests4Auto(Collection<io.netty.channel.Channel> channels, int sleep) throws InterruptedException
public static void sendRequests(Collection<io.netty.channel.Channel> channels, List<String> reqs)
public static void sendFunc(ChannelSender sender, String funcString, String addressStr, String value) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException
public static void sendFunc(ChannelSender sender, String func, int address, int value) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException
public static void sendFunc(ChannelSender sender, String func, int address, boolean value) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException
public static void sendFunc(ChannelSender sender, String func, int address, int[] values) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException
public static void sendFunc(ChannelSender sender, String func, int address, boolean[] values) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, SecurityException
Copyright © 2019. All Rights Reserved.