matlab打开蓝牙
b = Bluetooth('HC-05',1);
fopen(b)
matlab发送数据
fprintf(b,'%s\r\n','hello')
flushinput(b)
fscanf(b,'%s',1)
注意要先连接好Hc-05通过电脑
matlab打开蓝牙
b = Bluetooth('HC-05',1);
fopen(b)
matlab发送数据
fprintf(b,'%s\r\n','hello')
flushinput(b)
fscanf(b,'%s',1)
注意要先连接好Hc-05通过电脑