NXT_GetFirmwareVersion

Returns the protocol and firmware version of the NXT

Contents

Syntax

[protocol_version firmware_version] = NXT_GetFirmwareVersion()

[protocol_version firmware_version] = NXT_GetFirmwareVersion(handle)

Description

[protocol_version firmware_version] = NXT_GetFirmwareVersion() returns the protocol and firmware version of the NXT as strings.

[protocol_version firmware_version] = NXT_GetFirmwareVersion(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.

Examples

   [protocol_version firmware_version] = NXT_GetFirmwareVersion();
   handle = COM_OpenNXT('bluetooth.ini');
   [protocol_version firmware_version] = NXT_GetFirmwareVersion(handle);

See also

COM_GetDefaultNXT,

Signature