Esempio n. 1
0
        public int getIntegerValue(DlmsClient dlms, PhyLayer phy)
        {
            LnDescriptor desc = new LnDescriptor(CosemClasses.REGISTER.id, obis, attValue);

            dlms.get(phy, desc);
            return(DlmsParser.getInteger(desc.getResponseData()));
        }
Esempio n. 2
0
        public byte[] getValue(DlmsClient dlms, PhyLayer phy)
        {
            LnDescriptor desc = new LnDescriptor(CosemClasses.REGISTER.id, obis, attValue);

            dlms.get(phy, desc);
            return(desc.getResponseData());
        }
        public int getImageBlockSize(DlmsClient dlms, PhyLayer phy)
        {
            LnDescriptor att = createDesc(attBlockSize);

            dlms.get(phy, att);
            return(DlmsParser.getInteger(att.getResponseData()));
        }
Esempio n. 4
0
        public string getStringValue(DlmsClient dlms, PhyLayer phy)
        {
            LnDescriptor desc = new LnDescriptor(CosemClasses.DATA.id, obis, attValue);

            dlms.get(phy, desc);
            return(DlmsParser.getString(desc.getResponseData()));
        }
        public bool isTransferEnabled(DlmsClient dlms, PhyLayer phy)
        {
            LnDescriptor att = createDesc(attTransferEnabled);

            dlms.get(phy, att);
            return(DlmsParser.getBoolean(att.getResponseData()));
        }