You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/API.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,13 +38,14 @@ const tuya = new TuyaDevice([
38
38
39
39
### resolveIds
40
40
41
-
Resolves IDs stored in class to IPs.
41
+
Resolves IDs stored in class to IPs. If you didn't pass IPs to the constructor,
42
+
you must call this before doing anything else.
42
43
43
44
Returns **[Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[Boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Boolean)>** true if IPs were found and devices are ready to be used
44
45
45
46
### get
46
47
47
-
Gets the device's current status. Defaults to returning only the value of the first result,
48
+
Gets a device's current status. Defaults to returning only the value of the first result,
48
49
but by setting {schema: true} you can get everything.
0 commit comments