|
|
@@ -3,34 +3,39 @@ package com.yunfeiyun.agmp.iots.device.common;
|
|
|
import com.alibaba.fastjson2.JSONObject;
|
|
|
import com.yunfeiyun.agmp.iot.common.domain.IotDevice;
|
|
|
import com.yunfeiyun.agmp.iot.common.model.cmd.CmdModel;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
/**
|
|
|
- * @author 123
|
|
|
+ * @author liuyaowen
|
|
|
*/
|
|
|
-@Service
|
|
|
+@Slf4j
|
|
|
public abstract class DeviceAbstractImpl implements Device{
|
|
|
@Override
|
|
|
public Object sendCmd(CmdModel cmdModel) throws Exception {
|
|
|
+ log.error("此类型设备未实现发送设备指令接口");
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public Object receiveData(String topic, JSONObject cmdJson, String connectionId) throws Exception {
|
|
|
+ log.error("此类型设备未实现接收设备数据接口");
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public boolean isDeviceProps(JSONObject cmdJson) {
|
|
|
+ log.error("此类型设备未实现配置信息判定接口");
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public IotDevice findIotDevice(String topic, JSONObject jobjMsg, String connectionId) {
|
|
|
+ log.error("此类型设备未实现根据topi查询设备接口");
|
|
|
return null;
|
|
|
}
|
|
|
@Override
|
|
|
public void sysAllDevice(){
|
|
|
-
|
|
|
+ log.error("此类型设备未实现同步所有设备数据接口");
|
|
|
}
|
|
|
}
|