コード例 #1
0
        private async void Connect(IDevice _device)
        {
            Trace.Message("device name :" + _device.Name);

            await BleMvxApplication._reader.ConnectAsync(Adapter, _device);

            Trace.Message("load config");

            //bool LoadSuccess = await BleMvxApplication.LoadConfig(_device.Name);
            //BleMvxApplication._config.readerID = _device.Name;
            bool LoadSuccess = await BleMvxApplication.LoadConfig(_device.Id.ToString());

            BleMvxApplication._config.readerID = _device.Id.ToString();
        }