package com.ruoyi.iot.receive; import java.io.UnsupportedEncodingException; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.TimeUnit; import javax.servlet.http.HttpServletRequest; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import com.alibaba.fastjson2.JSON; import com.ruoyi.common.annotation.Anonymous; import com.ruoyi.common.utils.http.HttpUtils; import com.ruoyi.iot.domain.ObjBody; import com.ruoyi.iot.domain.ReceiveMsg; import com.ruoyi.iot.service.IotReceiveService; import com.ruoyi.iot.util.IotUtil; /** * 接收硬件参数 * * @author ruoyi */ @RestController @RequestMapping("/iot") public class ReceiveController { private static final Logger log = LoggerFactory.getLogger(ReceiveController.class); @Value(value = "${iot.token}") private String token; @Autowired private IotReceiveService iotReceiveService; @Autowired private ScheduledExecutorService scheduledExecutorService; /** * 功能描述:第三方平台数据接收。
*