Changes between Version 9 and Version 10 of DiscussionRelease2.00
- Timestamp:
- 05/16/08 17:12:34 (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DiscussionRelease2.00
v9 v10 31 31 [[BR]] 32 32 33 '''NXTnameOrMAC''' can either be the string of the NXT's name, like 'LfB'. Note that this does not have to be unique. It can also be the NXT's serial number / BT MAC which looks like "16:A0:FF:10:....". Note that leaving this string empty ('')will act as a wildcard: The first NXT found will be used. On the other hand, if you specify a name, this will also work on BT: Even if the Bluetooth-Device is connected, it will sill be disconnected if the MAC / Name doesn't match.33 '''NXTnameOrMAC''' can either be the string of the NXT's name, like 'LfB'. Note that this does not have to be unique. It can also be the NXT's serial number / BT MAC which looks like "16:A0:FF:10:....". Note that leaving this string empty will act as a wildcard: The first NXT found will be used. On the other hand, if you specify a name, this will also work on BT: Even if the Bluetooth-Device is connected, it will sill be disconnected if the MAC / Name doesn't match. 34 34 [[BR]] 35 35 … … 38 38 [[BR]] 39 39 Examples: 40 * COM_OpenHandleEx('USB_only', 'LfB', '') [[BR]]41 Will only connect to the NXT named LfB if it is connected via USB. Note that inifilename is empty (''), as it will be ignored. You could also write:40 * COM_OpenHandleEx('USB_only', 'LfB', ") [[BR]] 41 Will only connect to the NXT named LfB if it is connected via USB. Note that inifilename is empty, as it will be ignored. You could also write: 42 42 * COM_OpenHandleEx('USB_only', 'LfB', 'whatever.ini') [[BR]] 43 43 Identical to the one above. … … 46 46 * COM_OpenHandleEx('BT_only', 'LfB', 'bluetooth.ini', 'check') [[BR]] 47 47 Will only connect to the NXT named LfB, if it is connected via BT. If it is not name LfB, the connection will be dropped 48 * COM_OpenHandleEx('BT_only', '', 'bluetooth.ini', 'check') [[BR]]48 * COM_OpenHandleEx('BT_only', ", 'bluetooth.ini', 'check') [[BR]] 49 49 Will connect to a device via BT (just as specified inside the inifile), name doesn't matter (i.e. any NXT will be ok) 50 * COM_OpenHandleEx('USB_before_BT', '', 'bluetooth.ini', 'check') [[BR]]50 * COM_OpenHandleEx('USB_before_BT', ", 'bluetooth.ini', 'check') [[BR]] 51 51 Will first try to find a device via USB and take the first match (if multiples are found), if none are found via USB or USB detection somehow failes, bluetooth.ini will be parsed and used. 52 52 * COM_OpenHandleEx('USB_before_BT', 'LfB', 'bluetooth.ini', 'check') [[BR]]
