




//Context 为ApplicationContextMpAccRegister.setEnv(context, 1);
public static void setDataKey(String uuid, String dataKey)
参数 | 类型 | 描述 |
uuid | String | 设备唯一标识(可复用云 API 返回的 deviceId)。 |
dataKey | String | 设备密钥(每个 dataKey 对应一个设备,不能重复使用)。 |
func enableOverseas(enabled: Bool)
func setupDatakey(_ datakey: String, uuid: String)
参数 | 描述 |
datakey | 设备密钥 |
uuid | 设备唯一标识 |
curl -X 'POST' 'http://127.0.0.1:9801/api/v2/client/mp-speeder' -H 'accept: */*' -H 'Content-Type: application/json' -d '{"dataKey":"get this devicekey from tencent and replace it here","interfaces": ["usb0","usb1","eth0"],"registerEnv": 1,"scheduleMode": "bonding"}'
名称 | 类型 | 说明 |
dataKey | string | 必选设备 dataKey。 |
interfaces | [string] | 必选。参与多网聚合的接口列表。支持指定优先级,范围0~255,数值越小,优先级越高,优先级与网卡以冒号间隔。如果不传入优先级,则默认为64。注:redundant 模式下不支持传入优先级。["eth1:100", "eth2"]。 |
scheduleMode | string | 必选。默认加速模式。"bonding", "redundant", "rtc"。 |
registerEnv | integer | 必选。取值:1。 |
curl -X POST "http://127.0.0.1:9801/api/v2/client/mp-speeder" ^-H "accept: */*" ^-H "Content-Type: application/json" ^-d "{\\"serviceMode\\":0,\\"dataKey\\":\\"xxxxxxx\\",\\"scheduleMode\\":\\"rtc\\",\\"registerEnv\\":1,\\"tunInterfaceName\\":\\"mp_tun0\\",\\"t2Probe\\":true}"
名称 | 类型 | 说明 |
dataKey | string | 必选,设备 dataKey。 |
registerEnv | integer | 必选。取值:1。 |
文档反馈