Connect BLE bluetooth 4.0 with matlab

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개)

카테고리

도움말 센터File Exchange에서 Get Started with Bluetooth Toolbox에 대해 자세히 알아보기

질문:

2019년 2월 25일

편집:

2019년 2월 26일

Community Treasure Hunt

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

Start Hunting!

Translated by