mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
update 电单车
This commit is contained in:
@@ -124,7 +124,16 @@ public class YKCUtils {
|
||||
*/
|
||||
public static String frameType2Str(byte[] bytes) {
|
||||
String s = BytesUtil.bin2HexStr(bytes);
|
||||
return Constants.HEX_PREFIX + s;
|
||||
return frameType2Str(s);
|
||||
}
|
||||
|
||||
/**
|
||||
* 如:"01"--> "0x01"
|
||||
* @param frameType 帧类型
|
||||
* @return
|
||||
*/
|
||||
public static String frameType2Str(String frameType) {
|
||||
return Constants.HEX_PREFIX + frameType;
|
||||
}
|
||||
|
||||
public static byte[] frameTypeStr2Bytes(String frameTypeStr) {
|
||||
|
||||
Reference in New Issue
Block a user