doum
9 天以前 f4f2eb7c80ab85bf0e52c1b911d5a4a82cda330d
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
export declare const apiName = "internal.coap.sendMessage";
/**
 * 局域网传输coap包 请求参数定义
 * @apiName internal.coap.sendMessage
 */
export interface IInternalCoapSendMessageParams {
    /** 和设备端约定的id */
    id: number;
    /** 和设备端约定的method */
    method: string;
    /** 约定的coap协议版本号 */
    version: string;
    params: {
        /** 给设备配置的WiFi */
        ssid: string;
        /** ssid的密码,可选,开放网络不需要密码,不传该字段 */
        passwd?: string;
        /** 加密因子 */
        random: string;
        /** 静态ip信息,可选,不需要配置静态ip时不传,需要配置静态ip  */
        ipInfo?: {
            /** 静态ip地址 */
            ip: string;
            /** 子网掩码 */
            subnetMask: string;
            /** 网关地址 */
            gateway: string;
            /** 首选dns */
            preferredDNS: string;
            /** 备选dns */
            optionalDNS: string;
        };
    };
}
/**
 * 局域网传输coap包 返回结果定义
 * @apiName internal.coap.sendMessage
 */
export interface IInternalCoapSendMessageResult {
}
/**
 * 局域网传输coap包
 * @apiName internal.coap.sendMessage
 * @supportVersion ios: 4.6.34 android: 4.6.34
 */
export declare function sendMessage$(params: IInternalCoapSendMessageParams): Promise<IInternalCoapSendMessageResult>;
export default sendMessage$;