Java Code Examples for com.gizwits.gizwifisdk.enumration.GizWifiErrorCode#GIZ_SDK_DEVICE_CONFIG_IS_RUNNING

The following examples show how to use com.gizwits.gizwifisdk.enumration.GizWifiErrorCode#GIZ_SDK_DEVICE_CONFIG_IS_RUNNING . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
/**
 * 设备配置回调
 * 
 * @param result
 *            错误码
 * @param mac
 *            MAC
 * @param did
 *            DID
 * @param productKey
 *            PK
 */
protected void didSetDeviceOnboarding(GizWifiErrorCode result, String mac, String did, String productKey) {
	if (GizWifiErrorCode.GIZ_SDK_DEVICE_CONFIG_IS_RUNNING == result) {
		return;
	}
	if (timer != null) {
		timer.cancel();
	}
	Message message = new Message();
	if (result == GizWifiErrorCode.GIZ_SDK_SUCCESS) {
		message.what = handler_key.SUCCESSFUL.ordinal();
	} else {
		message.what = handler_key.FAILED.ordinal();
		message.obj = toastError(result);
	}
	handler.sendMessage(message);
}
 
Example 2
/**
 * 设备配置回调
 * 
 * @param result
 *            错误码
 * @param mac
 *            MAC
 * @param did
 *            DID
 * @param productKey
 *            PK
 */
protected void didSetDeviceOnboarding(GizWifiErrorCode result, String mac,
		String did, String productKey) {
	if (GizWifiErrorCode.GIZ_SDK_DEVICE_CONFIG_IS_RUNNING == result) {
		return;
	}

	if (timer != null) {
		timer.cancel();
	}
	Message message = new Message();
	if (result == GizWifiErrorCode.GIZ_SDK_SUCCESS) {
		message.what = handler_key.SUCCESSFUL.ordinal();
	} else {
		message.what = handler_key.FAILED.ordinal();
		message.obj = toastError(result);
	}
	Log.i("Apptest", result.toString());
	handler.sendMessage(message);
}
 
Example 3
/**
 * 设备配置回调
 * 
 * @param result
 *            错误码
 * @param mac
 *            MAC
 * @param did
 *            DID
 * @param productKey
 *            PK
 */
protected void didSetDeviceOnboarding(GizWifiErrorCode result, String mac, String did, String productKey) {
	if (GizWifiErrorCode.GIZ_SDK_DEVICE_CONFIG_IS_RUNNING == result) {
		return;
	}
	if (timer != null) {

		timer.cancel();
	}
	Message message = new Message();
	if (result == GizWifiErrorCode.GIZ_SDK_SUCCESS) {
		message.what = handler_key.SUCCESSFUL.ordinal();
	} else {
		message.what = handler_key.FAILED.ordinal();
		message.obj = toastError(result);
	}
	handler.sendMessage(message);
}
 
Example 4
/**
 * 设备配置回调
 * 
 * @param result
 *            错误码
 * @param mac
 *            MAC
 * @param did
 *            DID
 * @param productKey
 *            PK
 */
protected void didSetDeviceOnboarding(GizWifiErrorCode result, String mac, String did, String productKey) {
	if (GizWifiErrorCode.GIZ_SDK_DEVICE_CONFIG_IS_RUNNING == result) {
		return;
	}

	if (timer != null) {
		timer.cancel();
	}
	Message message = new Message();
	if (result == GizWifiErrorCode.GIZ_SDK_SUCCESS) {
		message.what = handler_key.SUCCESSFUL.ordinal();
	} else {
		message.what = handler_key.FAILED.ordinal();
		message.obj = toastError(result);
	}
	Log.i("Apptest", result.toString());
	handler.sendMessage(message);
}
 
Example 5
/**
 * 设备配置回调
 * 
 * @param result
 *            错误码
 * @param mac
 *            MAC
 * @param did
 *            DID
 * @param productKey
 *            PK
 */
protected void didSetDeviceOnboarding(GizWifiErrorCode result, String mac, String did, String productKey) {
	if (GizWifiErrorCode.GIZ_SDK_DEVICE_CONFIG_IS_RUNNING == result) {
		return;
	}
	if (timer != null) {
		timer.cancel();
	}
	Message message = new Message();
	if (result == GizWifiErrorCode.GIZ_SDK_SUCCESS) {
		message.what = handler_key.SUCCESSFUL.ordinal();
	} else {
		message.what = handler_key.FAILED.ordinal();
		message.obj = toastError(result);
	}
	handler.sendMessage(message);
}
 
Example 6
/**
 * 设备配置回调
 * 
 * @param result
 *            错误码
 * @param mac
 *            MAC
 * @param did
 *            DID
 * @param productKey
 *            PK
 */
protected void didSetDeviceOnboarding(GizWifiErrorCode result, String mac,
		String did, String productKey) {
	if (GizWifiErrorCode.GIZ_SDK_DEVICE_CONFIG_IS_RUNNING == result) {
		return;
	}

	if (timer != null) {
		timer.cancel();
	}
	Message message = new Message();
	if (result == GizWifiErrorCode.GIZ_SDK_SUCCESS) {
		message.what = handler_key.SUCCESSFUL.ordinal();
	} else {
		message.what = handler_key.FAILED.ordinal();
		message.obj = toastError(result);
	}
	Log.i("Apptest", result.toString());
	handler.sendMessage(message);
}