灯的日志

bozhou-古井贡酒
LAPTOP-S9HJSOEB\昊天 1 month ago
parent 5180e5b28a
commit 881dcbb1ae

@ -3,6 +3,7 @@ package com.zhehekeji.web.service;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.zhehekeji.web.entity.LightSource;
import com.zhehekeji.web.mapper.LightSourceMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@ -15,6 +16,7 @@ import java.nio.charset.StandardCharsets;
import java.util.HashMap;
import java.util.List;
@Slf4j
@Service
public class LightSourceService {
@ -53,6 +55,7 @@ public class LightSourceService {
String startCmd = "<1,"+stat+",post>";
byte[]bytes = startCmd.getBytes(StandardCharsets.UTF_8);
os.write(bytes);
log.info("发送:{}ip:{}",startCmd, ip);
} catch (IOException e) {

Loading…
Cancel
Save