Example #1
0
        static void Main(string[] args)
        {
            // Creating SensorClient performs automatically 'subscribe' action
            sc = new SensorClient("jl2", "user3", "bathstudent");
            sc.SensorClientCreateEvent += new SensorClientCreateEventHandler(sc_SensorClientCreateEvent);

            while (true)
            {
                // no-op
            }
        }
Example #2
0
 public void InitailiseBSF(string user, string pwd)
 {
     m_sensorClient = new SensorClient("jl2", user, pwd);
     m_sensorClient.SensorClientCreateEvent += new SensorClientCreateEventHandler(OnSensorClientCreateEvent);
 }