- 问题描述:用getDeviceInfo查询子设备信息的时候dpcodes的数据有滞后
用getDeviceInfo查询子设备信息的时候dpcodes的数据有滞后
-
- Posts: 42
用getDeviceInfo查询子设备信息的时候dpcodes的数据有滞后
Re: 用getDeviceInfo查询子设备信息的时候dpcodes的数据有滞后
获取最新的dp状态不要使用 dpCodes , 使用 https://developer.tuya.com/cn/miniapp/d ... s/useProps
-
- Posts: 42
Re: 用getDeviceInfo查询子设备信息的时候dpcodes的数据有滞后
useProps只能主设备用吧,子设备用不了吧
Re: 用getDeviceInfo查询子设备信息的时候dpcodes的数据有滞后
crisiron 2025年 Jun 10日 16:39如果需要监测多个设备 dp 变化,使用 https://developer.tuya.com/cn/miniapp/d ... datachange
那就用这个
-
- Posts: 42
Re: 用getDeviceInfo查询子设备信息的时候dpcodes的数据有滞后
用这个方法getDpsInfos能实时获取dp点