NXT_SetBrickName
Sets a new name for the NXT Brick (connected to the specified handle)
Contents
Syntax
[NXT_SetBrickName(name)
NXT_SetBrickName(name, handle)
Description
NXT_SetBrickName(name) sets a new name for the NXT Brick. The value name is a string value and determines the new name of the Brick. The maximum length is limited to 15 characters.
NXT_SetBrickName(name, handle) uses the given NXT connection handle. This should be a struct containing a serial handle on a PC system and a file handle on a Linux system.
If no NXT handle is specified the default one (COM_GetDefaultNXT) is used.
For more details see the official LEGO Mindstorms communication protocol.
Examples
NXT_SetBrickName('MyRobot');
handle = COM_OpenNXT('bluetooth.ini'); NXT_SetBrickName('Mindy', handle);
See also
COM_GetDefaultNXT, NXT_SendKeepAlive, NXT_GetBatteryLevel,
Signature
- Author: Linus Atorf, Alexander Behrens (see AUTHORS)
- Date: 2007/10/15
- Copyright: 2007-2010, RWTH Aachen University