Connect BLE bluetooth 4.0 with matlab
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Test and Measurement dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!