public void createPropertySet(IPropertySet property)
        {
            string keyValue = getPropertyLine();

            property.Add(m_PinName, PropertyValue.CreateString(keyValue));

            //    string keyValue = string.Format("PinName={0}; Typ={1}; PinNumber={2}; InitValue={3}; SetValue={4}", m_GPIOName, m_GPIOTyp.ToString(), m_PinNumber, m_InitValue,m_SetValue-SetValue); ;

            //    property.Add(m_GPIOName, PropertyValue.CreateString(keyValue));
        }
Esempio n. 2
0
        public StationEnvironment()
        {
            m_HostName      = "localhost";
            m_Port          = 3005;
            m_GPIOConnector = new GPIOConnector();
            m_OutPutServiceConnectorConfig = new PropertySet();
            m_InputServiceConnectorConfig  = new PropertySet();
            m_InputServiceConnectorConfig.Add("HostName", PropertyValue.CreateString("WilliRaspiPlus"));
            m_InputServiceConnectorConfig.Add("Port", PropertyValue.CreateInt32(3005));
            m_InputServiceConnectorConfig.Add("UpdateState", PropertyValue.CreateInt32(0));

            m_GPIOOInOutBanks = null;
        }
        public StationEnvironment()
        {
            m_HostName             = "localhost";
            m_Port                 = 3005;
            m_serDev               = new SerDevice("COM1");
            m_Connector_SEN0188    = new Connector_SEN0188();
            m_SEN0188SQLite        = new SEN0188SQLite();
            m_FingertEventDatabase = new FingertEventDatabase();
            m_SensorOutPutServiceConnectorConfig = new PropertySet();
            m_SensorInputServiceConnectorConfig  = new PropertySet();

            m_GPIOOutPutServiceConnectorConfig = new PropertySet();
            m_GPIOInputServiceConnectorConfig  = new PropertySet();



            m_GPIOInputServiceConnectorConfig.Add("HostName", PropertyValue.CreateString("WilliRaspiPlus"));
            m_GPIOInputServiceConnectorConfig.Add("Port", PropertyValue.CreateInt32(3005));
            m_GPIOInputServiceConnectorConfig.Add("UpdateState", PropertyValue.CreateInt32(0));
            m_GPIOInOutBanks = null;

            m_ConnectorSEN0188Enable = false;

            m_GPIOEnvironmentConnectors = new GPIOEnvironmentConnectors();


            m_ConfigProcessItems  = new ConfigProcessItems(m_GPIOEnvironmentConnectors);
            m_ProcessorGPIOEvents = new ProcessorGPIOEvents(this);

            m_SensorConnecorInitialized = false;
            m_GPIOConnecorInitialized   = false;
            m_SensorInitialized         = false;
            m_IsLoggedIn   = false;
            m_isAuthorized = false;
            m_user         = null;
            m_PeriodicTimerDelFingerEvents = null;
            m_EventHistoryinDays           = 14; // 14 Tage
        }
Esempio n. 4
0
        AdapterAttribute NewAttribute(string name, string value, E_ACCESS_TYPE access)
        {
            object data = PropertyValue.CreateString(value);

            return(NewAttribute(name, data, access));
        }