|
|
@@ -133,6 +133,16 @@ public class IotDeviceDataService {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
+ public Object getDeviceProperty(String deviceId, String property) {
|
|
|
+ if (StringUtils.isNotEmpty(deviceId) && StringUtils.isNotEmpty(property)) {
|
|
|
+ IotDeviceData entity = getDevicePropertyObject(deviceId, property);
|
|
|
+ if (entity != null) {
|
|
|
+ return entity.getValue();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return "";
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 查询值
|
|
|
*
|