Class Utils


  • public class Utils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Utils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static com.ghgande.j2mod.modbus.msg.ModbusResponse getResponse​(com.ghgande.j2mod.modbus.msg.ModbusRequest request, int unitId, AbstractModbusBridge bridge)  
      static java.lang.String toBitString​(byte[] bs)  
      static java.lang.String toBitString​(com.ghgande.j2mod.modbus.procimg.InputRegister[] registers)  
      static java.lang.Boolean[] toBooleanArray​(byte[] bytes)  
      static java.lang.Boolean[] toBooleanArray​(com.ghgande.j2mod.modbus.util.BitVector v)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Utils

        public Utils()
    • Method Detail

      • toBooleanArray

        public static java.lang.Boolean[] toBooleanArray​(com.ghgande.j2mod.modbus.util.BitVector v)
      • toBooleanArray

        public static java.lang.Boolean[] toBooleanArray​(byte[] bytes)
      • getResponse

        public static com.ghgande.j2mod.modbus.msg.ModbusResponse getResponse​(com.ghgande.j2mod.modbus.msg.ModbusRequest request,
                                                                              int unitId,
                                                                              AbstractModbusBridge bridge)
                                                                       throws OpenemsException,
                                                                              com.ghgande.j2mod.modbus.ModbusException
        Throws:
        OpenemsException
        com.ghgande.j2mod.modbus.ModbusException
      • toBitString

        public static java.lang.String toBitString​(com.ghgande.j2mod.modbus.procimg.InputRegister[] registers)
      • toBitString

        public static java.lang.String toBitString​(byte[] bs)