publishBLETransparentData(params: Object)
Requires:
DeviceKit≥3.0.0@ray-js/ray≥0.6.23
Platforms:
iOSAndroid
Description
Send pass-through data over BLE(thing)
Parameters
| Property | Type | Required | Description |
|---|---|---|---|
deviceId | string | Yes | Bluetooth passthrough data deviceId: device ID |
data | string | Yes | data: passthrough payload |
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