MrShi
8 天以前 7c93550a244fcc74678344628c229b42438c729f
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import { ICommonAPIParams } from '../../constant/types';
/**
 * 开启蓝牙广播 请求参数定义
 * @apiName startAdvertising
 */
export interface IUnionStartAdvertisingParams extends ICommonAPIParams {
    services: {
        uuid: string;
        characteristics: {
            uuid: string;
            value?: string;
            permission?: {
                readable: boolean;
                writeable: boolean;
                readEncryptionRequired: boolean;
                writeEncryptionRequired: boolean;
            };
            properties?: {
                read?: boolean;
                write?: boolean;
                notify?: boolean;
                indicate?: boolean;
                writeNoResponse?: boolean;
            };
            descriptors?: {
                uuid: string;
                value?: string;
                permission?: {
                    read: boolean;
                    write: boolean;
                };
            }[];
        }[];
    }[];
    deviceName?: string;
}
/**
 * 开启蓝牙广播 返回结果定义
 * @apiName startAdvertising
 */
export interface IUnionStartAdvertisingResult {
}
/**
 * 开启蓝牙广播
 * @apiName startAdvertising
 */
export declare function startAdvertising$(params: IUnionStartAdvertisingParams): Promise<IUnionStartAdvertisingResult>;
export default startAdvertising$;