offReceivedThingModelMessage(listener: Function)

Requires:
DeviceKit≥2.0.7@ray-js/ray≥0.8.0
Platforms:
iOSAndroid
import { device } from '@ray-js/ray';

const { offReceivedThingModelMessage } = device;

// Promise usage
try {
  const res = await offReceivedThingModelMessage({ ...params });
  console.log(res);
} catch (err) {
  console.log(err.errorMsg);
}

Description

Receive thing model message event. You will only receive this event after subscribing with subscribeReceivedThingModelMessage.

Parameters

ParameterTypeRequiredDescription
Yes

Return Value

None

Examples

import { device } from '@ray-js/ray'

const listener = function (res) { console.log(res) }
device.onReceivedThingModelMessage(listener)
device.offReceivedThingModelMessage(listener)