Examples of NetatmoError


Examples of org.openhab.binding.netatmo.internal.messages.NetatmoError

            logger.debug("Request: {}", request);
            logger.debug("Response: {}", response);

            if (response.isError()) {
                final NetatmoError error = response.getError();

                if (error.isAccessTokenExpired()) {
                    oauthCredentials.refreshAccessToken();
                    execute();
                } else {
                    throw new NetatmoException(error.getMessage());
                }

                break; // abort processing measurement requests
            } else {
                processMeasurementResponse(request, response, deviceMeasureValueMap);
View Full Code Here

Examples of org.openhab.binding.netatmo.internal.messages.NetatmoError

    private void processDeviceList(OAuthCredentials oauthCredentials) {
        logger.debug("Request: {}", oauthCredentials.deviceListRequest);
        logger.debug("Response: {}", oauthCredentials.deviceListResponse);

        if (oauthCredentials.deviceListResponse.isError()) {
            final NetatmoError error = oauthCredentials.deviceListResponse.getError();

            if (error.isAccessTokenExpired()) {
                oauthCredentials.refreshAccessToken();
                execute();
            } else {
                throw new NetatmoException(error.getMessage());
            }

            return; // abort processing
        } else {
            processDeviceListResponse(oauthCredentials.deviceListResponse);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.