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 ExchangeGet 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