%% Connect to a Bluetooth Low Energy Peripheral Device Using Its Address on macOS
% Search for and establish a connection to your Bluetooth Low Energy peripheral device.
% Scan for nearby peripheral devices that have the name "Gear Fit2 (E16A)" using blelist.

blelist("Name","Gear Fit2 (E16A)")

% Create a connection to the device with address "2F4AFADA-1F14-4BBD-A1F1-E7E64C0CF5BA". On a macOS computer, this address represents the random 128-bit OS-assigned address of the peripheral device.

b = ble("2F4AFADA-1F14-4BBD-A1F1-E7E64C0CF5BA")

% Copyright 2019 The MathWorks, Inc.