public bool SetBrickName( string deviceName )
{
byte[] command = new byte[18];
// prepare message
command[0] = (byte) NXTCommandType.SystemCommand;
command[1] = (byte) NXTSystemCommand.SetBrickName;
// convert string to bytes
System.Text.ASCIIEncoding.ASCII.GetBytes( deviceName, 0, Math.Min( deviceName.Length, 14 ), command, 2 );
return SendCommand( command, new byte[3] );
}