메이븐 pom.xml 에 아래 dependecy 추가

<dependency>
    <groupId>io.netty</groupId>
    <artifactId>netty-all</artifactId>
    <version>4.1.77.Final</version>
</dependency>
import io.netty.buffer.ByteBuf;
import io.netty.buffer.Unpooled;
public static ByteBuf strToBytoBuf(String strData)
{
    return Unpooled.wrappedBuffer(strData.getBytes(StandardCharsets.UTF_8));
}
public static String ByteBufToStr(ByteBuf byteBuf)
{
    return byteBuf.toString(CharsetUtil.UTF_8);
}

 

https://link.coupang.com/a/Ne41R

 

인테리어 오브제

COUPANG

www.coupang.com

이 포스팅은 쿠팡 파트너스 활동의 일환으로, 이에 따른 일정액의 수수료를 제공받습니다.

AND

EasyModbus 이용

EasyModbusJava.jar
0.09MB

ModbusClient modbusClient = null;
modbusClient = new ModbusClient(threadArgument.IP,
        Constant.MODUBUS_SERVER_PORT);
threadArgument.modbusClient.setConnectionTimeout(180000);
threadArgument.modbusClient.Connect();
int[] soc = modbusClient.ReadInputRegisters(Constant.POS_1, Constant.POS_1_1);
System.out.println(soc[0]);
System.out.println(Arrays.toString(soc));

 

https://link.coupang.com/a/NeZvi

 

기라로쉬 베어 타올 선물세트 140g 30수 면사

COUPANG

www.coupang.com

이 포스팅은 쿠팡 파트너스 활동의 일환으로, 이에 따른 일정액의 수수료를 제공받습니다

AND

메이븐 dependency pom.xml에 추가

<dependency>
    <groupId>commons-cli</groupId>
    <artifactId>commons-cli</artifactId>
    <version>1.4</version>
</dependency>
import org.apache.commons.cli.*;
Options options = new Options();
Option input = new Option("t", "type", true, "running type");
input.setRequired(true);
options.addOption(input);

CommandLineParser parser = new DefaultParser();
HelpFormatter formatter = new HelpFormatter();
CommandLine cmd = null;

try {
    cmd = parser.parse(options, args);
} catch (ParseException e) {
    System.out.println(e.getMessage());
    formatter.printHelp("utility-name", options);

    System.exit(1);
}

String runtype = cmd.getOptionValue("type");

if (runtype.equals("1")) {

java 실행클래스 -t 1

 

https://link.coupang.com/a/NeVv5

 

웰라쥬 리얼 골드 콜라겐 원데이키트 10회분+2회분

COUPANG

www.coupang.com

이 포스팅은 쿠팡 파트너스 활동의 일환으로, 이에 따른 일정액의 수수료를 제공받습니다

AND