private void NewServiceButton_Clicked(object sender, EventArgs e) { var bluetoothManager = DependencyService.Get <IManagerManager>().BluetoothManager; TestGattServiceWrapper = new TestGattServiceWrapper(bluetoothManager, 0x3432); bluetoothManager.GattSever.AddService(TestGattServiceWrapper.GattServerService); }
public TestGattServicePage(GattServiceModel gattServiceModel, TestGattServiceWrapper testGattServiceWrapper) { GattServiceModel = gattServiceModel; TestGattServiceWrapper = testGattServiceWrapper; BindingContext = GattServiceModel; InitializeComponent(); RequestListView.ItemsSource = testGattServiceWrapper.GattRequestViewModels; }