Skip to content

Instantly share code, notes, and snippets.

@juucustodio
Created December 7, 2017 17:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juucustodio/31b10dcc173b981781eab567aba1aada to your computer and use it in GitHub Desktop.
Save juucustodio/31b10dcc173b981781eab567aba1aada to your computer and use it in GitHub Desktop.
Example of Bluetooth in Xamarin.Forms applications - http://julianocustodio.com/bluetooth
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