Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Use of GetResponseEx
#1
Could someone please explain the use of GetResponseEx versus GetResponse. There is no help on the GetResposeEx command.

int GetResponseEx(char *pinstr, char *poutstr, size_t maxchars,
unsigned char EchoMode,int ack)

I assume it has much of the same functionality of GetResponse:
Parameters:
*pinstr - ptr to input string

maxchars - max length of output string

EchoMode - PMAC "echo" parameter which determines the format of the response

*poutstr - ptr to output string

Returns:
0 == OK, - == error number

What do I do with the "ack" parameter?
Any other differences --- when would you use one command versus the other?
Reply
#2
(12-09-2011, 07:58 AM)BoneSkier Wrote: Could someone please explain the use of GetResponseEx versus GetResponse. There is no help on the GetResposeEx command.

int GetResponseEx(char *pinstr, char *poutstr, size_t maxchars,
unsigned char EchoMode,int ack)

I assume it has much of the same functionality of GetResponse:
Parameters:
*pinstr - ptr to input string

maxchars - max length of output string

EchoMode - PMAC "echo" parameter which determines the format of the response

*poutstr - ptr to output string

Returns:
0 == OK, - == error number

What do I do with the "ack" parameter?
Any other differences --- when would you use one command versus the other?

The additional ack parameter if set to 1 returns a character 6 to indicate the end of a multiple line response. GetResponseEx will handle the following additional commands, save,$$$,$$$***,reboot, and macro station close. It will also handle symbolic names provided a project with symbols has already been loaded.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)