Examples of MeasurementResponse


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

    private Map<String, Map<String, BigDecimal>> processMeasurements(OAuthCredentials oauthCredentials) {
        Map<String, Map<String, BigDecimal>> deviceMeasureValueMap = new HashMap<String, Map<String,BigDecimal>>();

        for (final MeasurementRequest request : createMeasurementRequests()) {
            final MeasurementResponse response = request.execute();

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

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

                if (error.isAccessTokenExpired()) {
                    oauthCredentials.refreshAccessToken();
                    execute();
                } else {
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.