Example #1
0
        /// <summary>
        /// The constructor.
        /// </summary>
        public Robot(string address, string user, string password)
        {
            web_client = new WebClientTimeOut();
            web_client.BaseAddress = address;
            web_client.Credentials = new NetworkCredential(user, password);
            web_client.Proxy = null;
            web_client.TimeOut = 2000;

            API = new Rovio.API.API(this);
            Drive = new Drive(this);
            Camera = new Camera(this);
            IRSensor = new IRSensor(this);
            NavigationSensor = new NavigationSensor(this);
        }
Example #2
0
        public Robot(string address, string user, string password)
        {
            web_client = new WebClientTimeOut();
                web_client.BaseAddress = address;
                web_client.Credentials = new NetworkCredential(user, password);
                web_client.Proxy = null;
                web_client.TimeOut = 2000;

                API = new Rovio.API.API(this);
        }