package protocol import ( "strconv" "testing" ) func TestCreateTime(t *testing.T) { t.Log(createTime()) } func TestCRC32(t *testing.T) { t.Log(CRC32(Hextob("F1B000000006000199014C000219100000ED88621203"))) } func TestResponseMessage(t *testing.T) { t.Log(BytetoH(ResponseMessage(Hextob("F1B000000006000199014C000219100000ED8862120362D81046")))) } func TestCreateCommandMessage(t *testing.T) { t.Log(strconv.FormatInt(201, 16)) t.Log(BytetoH(CreateCommandMessage())) }