package com.zd.laboratory.controller;

import com.zd.laboratory.socket.service.SocketService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class TestController {

    @Autowired
    private SocketService socketService;

    @Test
    public void test(){

        String data = "fe dc 01 83 72 40 6e 6b 6c 00 00 00 04 03 00 34 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00";
        socketService.setSensorData(data);
    }
}
