Commit c81527b3 authored by 何金镒's avatar 何金镒

场景 4

parent 30ae30a1
...@@ -63,11 +63,10 @@ public class DeviceController { ...@@ -63,11 +63,10 @@ public class DeviceController {
} }
@GetMapping("/triggerScene") @GetMapping("/triggerScene")
public String triggerScene(@ToolParam(description = "主机号")String ccuName, public String triggerScene(@RequestParam(value = "ccuName")String ccuName,
@ToolParam(description = "场景ID")String devId, @RequestParam(value = "sceneId")String sceneId){
@ToolParam(description = "场景类型ID,type等于scene")String typeId){ log.info("triggerScene--->根据主机号和场景ID触发场景....ccuName:{},sceneId:{}",ccuName,sceneId);
log.info("mcp调用--->根据主机号和场景ID触发场景....ccuName:{},devId:{},type:{}",ccuName,devId,typeId); return konkeIotServer.optScene(CcuUtils.getCcuName(ccuName), sceneId);
return konkeIotServer.optScene(CcuUtils.getCcuName(ccuName), devId);
} }
@PostMapping("/saveTemporaryScene") @PostMapping("/saveTemporaryScene")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment