subscribeReceivedThingModelMessage
Requires:
DeviceKit≥2.0.7@ray-js/ray≥0.6.23
Platforms:
iOSAndroid
Method signature
subscribeReceivedThingModelMessage(params: )Minimum SDK versions
- iOS
ThingSmartDeviceKitBizBundle - ≥ 5.2.0
- Android
com.thingclips.smart:thingsmart-bizbundle-devicekit - ≥ 5.2.0
Description
Subscribe to receive thing model messages. The onReceivedThingModelMessage event is delivered only after a successful subscription.
Parameters
| Property | Type | Required | Description | Minimum SDK versions |
|---|---|---|---|---|
devId | string | Yes | Device ID | — |
complete | () => void | No | Completion callback (executed on both success and failure) | — |
success | () => void | No | Callback on successful API call | — |
fail | (params: Object) => void | No | Failure callback | — |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None