publishLanMessage
Requires:
DeviceKit≥2.1.4@ray-js/ray≥0.6.23
Platforms:
iOSAndroid
Method signature
publishLanMessage(params: )Minimum SDK versions
- iOS
ThingSmartDeviceKitBizBundle - ≥ 5.2.0
- Android
com.thingclips.smart:thingsmart-bizbundle-devicekit - ≥ 5.2.0
Description
Send a message via the LAN channel
Parameters
| Property | Type | Required | Description | Minimum SDK versions |
|---|---|---|---|---|
message | string | Yes | Message content | — |
deviceId | string | Yes | Device ID | — |
protocol | number | Yes | Protocol number | — |
options | Record<string, Record<string, any>> | No | Reserved flag for delivery logic configuration; can be extended later, for example to deliver sounds or define follow-up actions | — |
complete | () => void | No | Completion callback (executed on both success and failure) | — |
success | (params: boolean) => 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