package com.fzzy.protocol.youxian0;
|
|
|
import com.fzzy.api.utils.BytesUtil;
|
|
/**
|
* 工具类
|
*/
|
public class ServiceUtils {
|
|
|
//路由=6A
|
public static String FUNCTION_6A = "6a";
|
|
//搜索=62
|
public static String FUNCTION_62 = "6a";
|
|
//测温=66
|
public static String FUNCTION_66 = "66";
|
|
//仓外湿度=67
|
public static String FUNCTION_67 = "67";
|
|
//仓内湿度=68
|
public static String FUNCTION_68 = "68";
|
|
|
public static void main(String[] args) {
|
String hex1 ="9D";
|
String hex2 ="BB";
|
|
int num1 = BytesUtil.hexToInt(hex1);
|
int num2 = BytesUtil.hexToInt(hex2);
|
|
int result = num1^num2;
|
|
System.out.println(result);
|
|
|
}
|
|
|
}
|