libNbiotCore/include/atcommands.h
bool addUrcFilter(const char* urc, void (*urc_handler)(const char*))
    {
#ifdef DEBUG_ATCOMMANDS
#ifdef DEBUG_COLOR
    debugPrintf("\033[0;32m[ATCOMMANDS]\033[0m ");
#endif
    debugPrintf("add URC-Filter: %s\r\n", urc);
#endif
        bool ret = serial.addUrcFilter(urc, urc_handler);
#ifdef DEBUG_ATCOMMANDS
        serial.dumpFilterList();
#endif
        return ret;
    }
/*!
     * \brief addUrcFilter Adds a filter for an unsolicited response code (URC) to the underlaying serial connection
     * \param urc the unsolicited response code to find
     * \param urc_handler the handler function that will be called in case of a filter match. It will receive the response-line as parameter.
     * \return true if a new filter was added
     */
\brief addUrcFilter Adds a filter for an unsolicited response code (URC) to the underlaying serial connection
\param urc the unsolicited response code to find
\param urc_handler the handler function that will be called in case of a filter match. It will receive the response-line as parameter.
\return true if a new filter was added
\ brief addUrcFilter Adds a filter for an unsolicited response code ( URC ) to the underlaying serial connection \ param urc the unsolicited response code to find \ param urc_handler the handler function that will be called in case of a filter match . It will receive the response - line as parameter . \ return true if a new filter was added
bool addUrcFilter(const char* urc, void (*urc_handler)(const char*))
    {
#ifdef DEBUG_ATCOMMANDS
#ifdef DEBUG_COLOR
    debugPrintf("\033[0;32m[ATCOMMANDS]\033[0m ");
#endif
    debugPrintf("add URC-Filter: %s\r\n", urc);
#endif
        bool ret = serial.addUrcFilter(urc, urc_handler);
#ifdef DEBUG_ATCOMMANDS
        serial.dumpFilterList();
#endif
        return ret;
    }
bool addUrcFilter ( const char * urc , void ( * urc_handler ) ( const char * ) ) { #ifdef DEBUG_ATCOMMANDS #ifdef DEBUG_COLOR debugPrintf ( " \033 \033 " ) ; #endif debugPrintf ( " \r \n " , urc ) ; #endif bool ret = serial . addUrcFilter ( urc , urc_handler ) ; #ifdef DEBUG_ATCOMMANDS serial . dumpFilterList ( ) ; #endif return ret ; }
\brief addUrcFilter Adds a filter for an unsolicited response code (URC) to the underlaying serial connection
 \param urc the unsolicited response code to find
 \param urc_handler the handler function that will be called in case of a filter match.
\ brief addUrcFilter Adds a filter for an unsolicited response code ( URC ) to the underlaying serial connection \ param urc the unsolicited response code to find \ param urc_handler the handler function that will be called in case of a filter match .