Demo entry 6320144

ee

   

Submitted by anonymous on Nov 09, 2016 at 10:11
Language: Java. Code size: 690 Bytes.

String deviceId = "gh_248e6ca70bbb_5aab93a29ec00965";
		String mac = "000E0B102019";// 设备mac地址
		String params = "{\"device_num\":\"1\",\"device_list\":[{"
				+ "\"id\":\"" + deviceId + "\"," + "\"mac\":\"" + mac + "\","
				+ "\"connect_protocol\":\"3\"," + "\"auth_key\":\"\","
				+ "\"close_strategy\":\"1\"," + "\"conn_strategy\":\"1\","
				+ "\"crypt_method\":\"0\"," + "\"auth_ver\":\"0\","
				+ "\"manu_mac_pos\":\"-1\"," + "\"ser_mac_pos\":\"-2\","
				+ "\"ble_simple_protocol\": \"0\"" + "}],"
				+ "\"op_type\":\"1\"" + "}";

		String s = DeviceUtil.sendPost(
				"https://api.weixin.qq.com/device/authorize_device?access_token="
						+ at.getToken(), params);

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).