Пример #1
0
        public override bool TryGetService(BleUuid guid, out BleService service)
        {
            RequiresServices();
            var services = _services;

            for (int i = 0; i < services.Length; i++)
            {
                if (services[i].Uuid == guid)
                {
                    service = services[i]; return(true);
                }
            }

            service = null; return(false);
        }
Пример #2
0
        public override bool HasService(BleUuid service)
        {
            RequiresServices();
            var services = _services;

            for (int i = 0; i < services.Length; i++)
            {
                if (services[i].Uuid == service)
                {
                    return(true);
                }
            }

            return(false);
        }