Ejemplo n.º 1
0
        //
        // Public Methods
        //
        public Sensor(string server, string user, string pwd, string node)
        {
            m_user = user;
            m_server = server;
            m_pwd = pwd;
            m_node = node;

            m_xmppClient = new XmppClient();
            m_payload = new SensorPayload();
            m_psItem = new Matrix.Xmpp.PubSub.Item();
            m_psJid = new Jid("pubsub." + m_server);
            m_bReady = false;

            _License();
            Connect();
        }
Ejemplo n.º 2
0
        //
        // Public Methods
        //
        public Sensor(string server, string user, string pwd, string node)
        {
            m_user   = user;
            m_server = server;
            m_pwd    = pwd;
            m_node   = node;

            m_xmppClient = new XmppClient();
            m_payload    = new SensorPayload();
            m_psItem     = new Matrix.Xmpp.PubSub.Item();
            m_psJid      = new Jid("pubsub." + m_server);
            m_bReady     = false;

            _License();
            Connect();
        }
Ejemplo n.º 3
0
        //
        // Public Methods
        //

        public SensorClient(string server, string user, string pwd)
        {
            m_user     = user;
            m_server   = server;
            m_pwd      = pwd;
            m_subNH    = new List <SubNodeHandler>(3);
            m_bCreated = false;

            m_xmppClient = new XmppClient();
            m_payload    = new SensorPayload();
            m_psItem     = new Matrix.Xmpp.PubSub.Item();
            m_psJid      = new Jid("pubsub." + m_server);
            m_psMgr      = new PubSubManager(m_xmppClient);

            _License();
            Connect();
        }
Ejemplo n.º 4
0
        //
        // Public Methods
        //
        public SensorClient(string server, string user, string pwd)
        {
            m_user = user;
            m_server = server;
            m_pwd = pwd;
            m_subNH = new List<SubNodeHandler>(3);
            m_bCreated = false;

            m_xmppClient = new XmppClient();
            m_payload = new SensorPayload();
            m_psItem = new Matrix.Xmpp.PubSub.Item();
            m_psJid = new Jid("pubsub." + m_server);
            m_psMgr = new PubSubManager(m_xmppClient);

            _License();
            Connect();
        }