getDeviceRoomInfo
Requires:
HomeKit≥3.0.1@ray-js/ray≥1.2.10
Platforms:
iOSAndroid
Method signature
getDeviceRoomInfo(params: )Minimum SDK versions
- iOS
ThingSmartHomeKitBizBundle - ≥ 5.2.0
- Android
com.thingclips.smart:thingsmart-bizbundle-homekit - ≥ 5.2.0
Description
Get device room information
Parameters
| Property | Type | Required | Description | Minimum SDK versions |
|---|---|---|---|---|
deviceId | string | Yes | Device ID | — |
complete | () => void | No | Completion callback (executed on both success and failure) | — |
success | (params: Object) => void | No | Callback on successful API call | — |
fail | (params: Object) => void | No | Failure callback | — |
success callback parameters
| Property | Type | Description | HomeKit Since | Minimum SDK versions |
|---|---|---|---|---|
roomId | number | Room ID | v3.0.3 | — |
name | string | Room name | v3.0.3 | — |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None