English
English
简体中文
Register
Log In
English
English
简体中文
Register
Log In
Language
English
English
简体中文
Register
Log In

Why is an error of deviceBean = null reported during network pairing of a gateway sub-device?

Last Updated on2025-02-27 07:28:38
To troubleshoot the error, perform the following steps:
  1. Obtain the deviceBean of the gateway. deviceBean=TuyaHomeSdk.getDataInstance().getDeviceBean(deviceId);
  2. Read the status (online/offline) of the deviceBean. deviceBean. getIsOnline = true/false
  3. You can pair the gateway sub-device only when the gateway is online, that is, deviceBean. getIsOnline = true. Otherwise, an error of deviceBean = null will occur.

Click for services and help

Help Center