# sendBlueLuaNotification ^10.2.0

发送通知给设备,设备不需要回复。支持A3设备才能使用

# 请求参数

Prop Type Required Default Description
param Object Y {}

mac:{
Type: String,
Default: N/A,
Description: 蓝牙mac地址((可以使用getDeviceInfo中返回的mac字段))
}
applianceId:{
Type: String,
Default: N/A,
Description: 设备id(可以从getDeviceInfo中读取deviceId<)
}
data:{
Type: Object,
Default: {},
Description: 期望控制的设备属性和值

}
请求参数

# 接口调用示例

let params={
    mac:"xxxx",//12位蓝牙Mac地址
    name:"midea_xx_xxxx",//蓝牙名称
    applianceId:"xxx",
    data:{
        luaKey1:"xxx",(lua profile文件中定义的key和值)
        luaKey2:"xxx"
    },//期望控制
}
this.$bridge
    .sendBlueLuaNotification(params)
    .then(res => {    
    this.$alert(res)
    })
    .catch(err => {
    this.$toast(err)
    })

// 出参

// callbackFail (result)
//     result: {
//     errorCode:xxx//
//     errorMessage:具体原因
// }
// result:{errorCode:0)}//接收/校验成功


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

TIP

该接口基于mSmart 协议,底层由singleBlueToothModule单蓝牙支持

Last Updated: 5/19/2025, 4:47:11 PM