NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
char GetLastResponseInfo ( bool  Clear,
byte &  Length,
byte &  Command,
byte &  Buffer[] 
)
inline

Read last response information.

Read the last direct or system command response packet received by the NXT. Optionally clear the response after retrieving the information.

Warning
This function requires the enhanced NBC/NXC firmware version 1.31+.
Parameters
ClearA boolean value indicating whether to clear the response or not.
LengthThe response packet length.
CommandThe original command byte.
BufferThe response packet buffer.
Returns
The response status code.
Examples:
ex_GetLastResponseInfo.nxc.