Connect BLE bluetooth 4.0 with matlab

2 次查看(过去 30 天)
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!

回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by