Пример #1
0
        /// <summary> Creates new instance of the WeDo Robot class. </summary>
        public wclWeDoRobot()
        {
            FHubs    = new Dictionary <Int64, wclWeDoHub>();
            FManager = new wclBluetoothManager();
            FRadio   = null;
            FWatcher = new wclWeDoWatcher();

            FWatcher.OnHubFound += WatcherHubFound;
            FWatcher.OnStarted  += WatcherStarted;
            FWatcher.OnStopped  += WatcherStopped;

            OnHubConnected    = null;
            OnHubDisconnected = null;
            OnHubFound        = null;
            OnStarted         = null;
            OnStopped         = null;
        }