1234567891011121314151617181920212223242526272829 |
- import io.netty.buffer.PooledByteBufAllocator;
- import io.netty.util.internal.PlatformDependent;
- import wei.yigulu.iec104.nettyconfig.Iec104HSMasterBuilder;
- import wei.yigulu.iec104.util.SendDataFrameHelper;
- /**
- * 客户端测试
- *
- * @author 修唯xiuwei
- * @create 2019-01-22 16:05
- * @Email 524710549@qq.com
- **/
- public class ClientTest {
- public static void main(String[] args) throws Exception {
- Iec104HSMasterBuilder a = new Iec104HSMasterBuilder("127.0.0.1", 2404);
- a.createByUnBlock();
- Thread.sleep(5000L);
- for (;;){
- Thread.sleep(3000L);
- System.out.println( );
- SendDataFrameHelper.sendTotalSummonFrame(a.getFuture().channel(),1,6,a.getLog());
- }
- }
- }
|