修改代码
This commit is contained in:
parent
a99053e108
commit
040359177e
|
|
@ -80,6 +80,7 @@ public interface IThingsBoardDomain {
|
|||
* @param deviceId 设备ID
|
||||
* @return 网关设备ID,如果设备不属于任何网关则返回 null
|
||||
*/
|
||||
@Deprecated
|
||||
String getDeviceGatewayId(String deviceId);
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -212,6 +212,7 @@ public class ThingsBoardDomainImpl implements IThingsBoardDomain {
|
|||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public String getDeviceGatewayId(String deviceId) {
|
||||
try {
|
||||
DeviceId id = new DeviceId(UUID.fromString(deviceId));
|
||||
|
|
|
|||
|
|
@ -227,7 +227,7 @@ public class SynService {
|
|||
|
||||
try {
|
||||
// 获取子设备属性
|
||||
AttributeMap attributes = iThingsBoardDomain.getDeviceAttributes(childDeviceId);
|
||||
AttributeMap attributes = iThingsBoardDomain.getPredefinedDeviceAttributes(childDeviceId);
|
||||
|
||||
// 判断设备类型
|
||||
DeviceType deviceType = determineDeviceType(childDeviceInfo, attributes);
|
||||
|
|
|
|||
Loading…
Reference in New Issue