Opens a Bluetooth connection using settings from the given configuration file
handle = BT_OpenHandle(inifilename)
handle = BT_OpenHandle(inifilename, 'check')
handle = BT_OpenHandle(inifilename) opens a Bluetooth connection (PC: serial handle struct, Linux: file handle) based on the settings of the given configuration file determined by the filename inifilename.
handle is a serial handle struct if the computer system is a PC and a file handle if it is a Linux system.
handle = BT_OpenHandle(inifilename, 'check') will test the new Bluetooth connection by sending a simple keep alive packet. This is recommended, as it detects errors with the Bluetooth connection outside MATLAB right away.
BT_MakeConfigFile(); bt_handle = BT_OpenHandle('bluetooth.ini', 'check');
- Author: Linus Atorf (see AUTHORS)
- Date: 2007/10/14
- Copyright: 2007, RWTH Aachen University