MATLAB: Unnable to connect LegoEv3 via Blurtooth,

bluetoothlegoev3

Connection via USB is OK. Only when I try to get the connection via Bluetooth I get the following Error Message: "Error using legoev3 (line 183) Failed to connect to EV3 through Bluetooth. Please check your Bluetooth connection." What can be the reason?
Matlab Version 2014b, W7
Best regards A.Roth

Best Answer

The reason behind this error may be because of an incompatibility between the bluetooth stacks on the host machine and the lego ev3. In this case, the workaround is to use the following command:
>> mylego = legoev3('bt','00165344C94D')
where the second input is the remote ID without the 'btspp://' prefix
Related Question