Package org.opencean.core.common

Examples of org.opencean.core.common.EEPId


    }

    @Override
    public EEPId getEEP(String itemName) {
        EnoceanBindingConfig config = (EnoceanBindingConfig) bindingConfigs.get(itemName);
        return config != null ? new EEPId(config.eep) : null;
    }
View Full Code Here


        }
    }

    private void processEEPs(EnoceanBindingProvider enoceanBindingProvider, String itemName) {
        EnoceanParameterAddress parameterAddress = enoceanBindingProvider.getParameterAddress(itemName);
        EEPId eep = enoceanBindingProvider.getEEP(itemName);
        esp3Host.addDeviceProfile(parameterAddress.getEnoceanDeviceId(), eep);
        Item item = enoceanBindingProvider.getItem(itemName);
        if (profiles.containsKey(parameterAddress.getAsString())) {
            Profile profile = profiles.get(parameterAddress.getAsString());
            profile.removeItem(item);
View Full Code Here

    @Test
    public void testGetEEP() throws BindingConfigParseException {
        EnoceanGenericBindingProvider provider = new EnoceanGenericBindingProvider();
        provider.processBindingConfiguration("enocean", new TestItem("item"),
                "{id=00:8B:62:43, eep=F6:02:01, channel=B, parameter=I_PRESSED}");
        assertEquals(new EEPId("F6:02:01"), provider.getEEP("item"));
    }
View Full Code Here

TOP

Related Classes of org.opencean.core.common.EEPId

Copyright © 2018 www.massapicom. 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.