Connect BLE bluetooth 4.0 with matlab

1 Ansicht (letzte 30 Tage)
Jose Martinez
Jose Martinez am 25 Feb. 2019
Bearbeitet: Jose Martinez am 26 Feb. 2019
Hi, I have been using a HC-05 bluetooth module to connect with the computer/Matlab but I need to change the module for a BLE 4.0 one (HM-10). Until now I used the Test & Measurement Tool to detect the bluetooth and it created the code for the connection like below:
%% Instrument Connection
% Find a Bluetooth connection object.
obj1 = instrfind('Type', 'bluetooth', 'Name', 'Bluetooth-HC-05:1', 'Tag', '');
% Create the Bluetooth connection object if it does not exist
% otherwise use the object that was found.
if isempty(obj1)
obj1 = Bluetooth('HC-05', 1);
else
fclose(obj1);
obj1 = obj1(1);
end
% Connect to instrument object, obj1.
fopen(obj1);
Test & Measurement Tool doesn't detect the new BLE device, do you now if I can use this kind of Bluetooth and how could I connect to?
Thanks!

Antworten (0)

Kategorien

Mehr zu Test and Measurement finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by