Created
December 7, 2017 17:33
-
-
Save juucustodio/31b10dcc173b981781eab567aba1aada to your computer and use it in GitHub Desktop.
Example of Bluetooth in Xamarin.Forms applications - http://julianocustodio.com/bluetooth
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace DemoBluetooth | |
{ | |
public partial class MainPage | |
{ | |
IAdapter adapter; | |
IBluetoothLE bluetoothBLE; | |
ObservableCollection<IDevice> list; | |
IDevice device; | |
public MainPage() | |
{ | |
InitializeComponent(); | |
bluetoothBLE = CrossBluetoothLE.Current; | |
adapter = CrossBluetoothLE.Current.Adapter; | |
list = new ObservableCollection<IDevice>(); | |
DevicesList.ItemsSource = list; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment