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 . 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
Source File: GosConfigCountdownActivity.java    From GOpenSource_AppKit_Android_AS with MIT License 6 votes vote down vote up
/**
 * 设备配置回调
 * 
 * @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
Source File: GosAirlinkConfigCountdownActivity.java    From GOpenSource_AppKit_Android_AS with MIT License 6 votes vote down vote up
/**
 * 设备配置回调
 * 
 * @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
Source File: GosConfigCountdownActivity.java    From Gizwits-SmartBuld_Android with MIT License 6 votes vote down vote up
/**
 * 设备配置回调
 * 
 * @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
Source File: GosAirlinkConfigCountdownActivity.java    From Gizwits-SmartBuld_Android with MIT License 6 votes vote down vote up
/**
 * 设备配置回调
 * 
 * @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
Source File: GosConfigCountdownActivity.java    From gokit-android with MIT License 6 votes vote down vote up
/**
 * 设备配置回调
 * 
 * @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
Source File: GosAirlinkConfigCountdownActivity.java    From gokit-android with MIT License 6 votes vote down vote up
/**
 * 设备配置回调
 * 
 * @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);
}