src/AduProtocol.c
static bool HandlerReadRelayPortDecimal(const char *args)
{
    BoardDebugPrint("Hit %s\r\n", __func__);

    bool success = false;

    // There should be no arguments to this command
    if (strlen(args) == 0)
    {
        WriteResponseDecimal(BoardReadRelays(), DEC_DIGITS_8_BIT);
        success = true;
    }

    return success;
}
/**
 * Handler for the "PK" command, which responds with the current status of
 * the 8-bit relay port as a decimal value.
 *
 * @post On success, the response buffer is populated
 *
 * @param[in] args The non-fixed portion of the command string (if any)
 *
 * @return Returns true on success or false on failure
 */
Handler for the "PK" command, which responds with the current status of
the 8-bit relay port as a decimal value.

@post On success, the response buffer is populated

@param[in] args The non-fixed portion of the command string (if any)

@return Returns true on success or false on failure
Handler for the " PK " command which responds with the current status of the 8 - bit relay port as a decimal value . @post On success the response buffer is populated @param [ in ] args The non - fixed portion of the command string ( if any ) @return Returns true on success or false on failure
static bool HandlerReadRelayPortDecimal(const char *args)
{
    BoardDebugPrint("Hit %s\r\n", __func__);
    bool success = false;
    if (strlen(args) == 0)
    {
        WriteResponseDecimal(BoardReadRelays(), DEC_DIGITS_8_BIT);
        success = true;
    }
    return success;
}
static bool HandlerReadRelayPortDecimal ( const char * args ) { BoardDebugPrint ( " \r \n " , __func__ ) ; bool success = false ; if ( strlen ( args ) == 0 ) { WriteResponseDecimal ( BoardReadRelays ( ) , DEC_DIGITS_8_BIT ) ; success = true ; } return success ; }
Handler for the "PK" command, which responds with the current status of
 the 8-bit relay port as a decimal value.
Handler for the " PK " command which responds with the current status of the 8 - bit relay port as a decimal value .
// There should be no arguments to this command