src/apps/at_parser/at_parser.c
static uint16_t findHandler( char* pCmd ) {
    uint8_t     len = 0;
    uint16_t    idx = 0;
    uint32_t    hash = 0;

    idx = 0;
    len = strlen( pCmd );
    hash = makeHash( pCmd );
    for( idx = 1; idx < handlerIdx; idx++ ) {
        if( handlerStorage[idx].len == len ) {
            if( handlerStorage[idx].hash == hash ) {
                return idx;
            }
        }
    }
    return _AT_UNKNOWN;                
}
/*
 * Search handler storage for provided command
 *
 * Function search the storage based on sting length and hash code.
 * If function returns zero command does not exists in storage area.
 */
Search handler storage for provided command
Function search the storage based on sting length and hash code.
If function returns zero command does not exists in storage area.
Search handler storage for provided command Function search the storage based on sting length and hash code . If function returns zero command does not exists in storage area .
static uint16_t findHandler( char* pCmd ) {
    uint8_t     len = 0;
    uint16_t    idx = 0;
    uint32_t    hash = 0;
    idx = 0;
    len = strlen( pCmd );
    hash = makeHash( pCmd );
    for( idx = 1; idx < handlerIdx; idx++ ) {
        if( handlerStorage[idx].len == len ) {
            if( handlerStorage[idx].hash == hash ) {
                return idx;
            }
        }
    }
    return _AT_UNKNOWN;                
}
static uint16_t findHandler ( char * pCmd ) { uint8_t len = 0 ; uint16_t idx = 0 ; uint32_t hash = 0 ; idx = 0 ; len = strlen ( pCmd ) ; hash = makeHash ( pCmd ) ; for ( idx = 1 ; idx < handlerIdx ; idx ++ ) { if ( handlerStorage [ idx ] . len == len ) { if ( handlerStorage [ idx ] . hash == hash ) { return idx ; } } } return _AT_UNKNOWN ; }
Search handler storage for provided command
 Function search the storage based on sting length and hash code.
Search handler storage for provided command Function search the storage based on sting length and hash code .