mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 19:15:35 +08:00
update 电单车协议
This commit is contained in:
@@ -10,6 +10,8 @@ import java.math.BigDecimal;
|
||||
* @author jsowell
|
||||
*/
|
||||
public class Constants {
|
||||
// 电单车协议包头
|
||||
public static final String EBIKE_HEADER = "DNY";
|
||||
|
||||
// 十六进制前缀
|
||||
public static final String HEX_PREFIX = "0x";
|
||||
|
||||
@@ -380,7 +380,7 @@ public class BytesUtil {
|
||||
// int i = BytesUtil.bytesToIntLittle(length);
|
||||
// System.out.println(i);
|
||||
|
||||
String testStr = "DNY";
|
||||
String testStr = Constants.EBIKE_HEADER;
|
||||
byte[] hexBytes = stringToHexBytes(testStr, 3);
|
||||
System.out.println("Hex Bytes: " + bytesToHex(hexBytes));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user