TuyaInc / tuyasmart-home-sdk-react-native

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TuyaDeviceApi.getDp not working on Android

tronginc opened this issue · comments

Hello,
Today I need get dpValue for status reporting, so I call the function

TuyaDeviceApi.getDp({ devId, dpId })
    .then((status) => console.log(status))
    .catch((e) => console.log(e));

It's works on iOS. So on Android it throw the error

image

fixBugs