Ejemplo n.º 1
0
        internal void OnAvailableNetworksChangedInternal(WiFiEvent e)
        {
            AvailableNetworksChangedEventHandler callbacks = null;

            lock (_syncLock)
            {
                if (!_disposedValue)
                {
                    callbacks = AvailableNetworksChanged;
                }
            }

            callbacks?.Invoke(this, new EventArgs());
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Process an event
        /// </summary>
        /// <param name="data1"> bits 0-8 = subCategory, bits 9-15=category, bits 16-31=data1 </param>
        /// <param name="data2"> data2 </param>
        /// <param name="time"></param>
        /// <returns></returns>
        public BaseEvent ProcessEvent(uint data1, uint data2, DateTime time)
        {
            WiFiEventType eventType = (WiFiEventType)(data1 & 0xFF);

            if (eventType >= WiFiEventType.ScanComplete)
            {
                WiFiEvent wifiEvent = new WiFiEvent();
                wifiEvent.EventType = eventType;
                wifiEvent.Time      = time;

                return(wifiEvent);
            }
            return(null);
        }