RWTH - Mindstorms NXT Toolbox

BT_GetDefaultHandle

Returns the global default Bluetooth handle if it was previously set

Contents

Syntax

h = BT_GetDefaultHandle()

Description

h = BT_GetDefaultHandle returns the global default Bluetooth handle h if it was previously set. The default global Bluetooth handle is used by all NXT-Functions per default if no other handle is specified. To set this global handle the function BT_SetDefaultHandle is used.

Example

   BT_MakeConfigFile();
   handle = BT_OpenHandle('bluetooth.ini', 'check');
   BT_SetDefaultHandle(handle);
   bt_handle = BT_GetDefaultHandle();

See also

BT_SetDefaultHandle, BT_MakeConfigFile, BT_OpenHandle

Signature


Back to RWTH - Mindstorms NXT Toolbox