BLEPeripheralServer.removeService(Object object)
基础库版本 >=
3.73.0支持。
移除服务。
参数说明
Object object
| 属性 | 类型 | 默认值 | 必填 | 说明 | 版本 |
|---|---|---|---|---|---|
| serviceId | string | 是 | service 的 UUID | 3.73.0 | |
| success | function | 否 | 接口调用成功的回调函数 | 3.73.0 | |
| fail | function | 否 | 接口调用失败的回调函数 | 3.73.0 | |
| complete | function | 否 | 接⼝调⽤结束的回调函数(调⽤成功、失败都会执⾏) | 3.73.0 |
示例代码
BLEPeripheralServer.removeService(function (res) {
service,
console.log('removeService:', res)
})