Issue a status request from the radio.
|mesg ||a query command string|
This function makes sure that mesg isnt empty, as well as making sure that mesg is two bytes long. Any queries sent to the radio should be the header of the information requested to be returned.
It then zero's out the ask buffer, and copies the message into the ask buffer. Then it concatenates the PCRQST command terminator, and calls Write() sending it the ask buffer.
- the number of bytes asked minus the PCRQST command terminator.
- See also:
- PCRQST pcrdef.h
Definition at line 217 of file pcomm.cpp.
References askBuf, and Write().
Referenced by PCP::PCPQueryOn(), PCP::PCPQuerySquelch(), PCP::PCPSigStrength(), and PCP::PCPSigStrengthStr().
fprintf(stderr, "Ask: %s\n", mesg);