libNbiot/src/nbiotloop.h
void registerLoopClient(iLoopControlled* client)
    {
        if(nullptr != client)
        {
#ifdef DEBUG_MQTT
            NbiotLoopId loopId = client->getLoopId();
#ifdef DEBUG_COLOR
            debugPrintf("\033[0;32m[ MQTT     ]\033[0m ");
#endif
            debugPrintf("loop controller: register client %s\r\n", (LI_Unknown == loopId)?"LI_Unknown":loop_id[loopId]);
#endif
            m_clientList.append(client);
        }
        else
        {
            clear();
        }
    }
/*!
     * \brief registerLoopClient
     * \param client
     */
\brief registerLoopClient
\param client
\ brief registerLoopClient \ param client
void registerLoopClient(iLoopControlled* client)
    {
        if(nullptr != client)
        {
#ifdef DEBUG_MQTT
            NbiotLoopId loopId = client->getLoopId();
#ifdef DEBUG_COLOR
            debugPrintf("\033[0;32m[ MQTT     ]\033[0m ");
#endif
            debugPrintf("loop controller: register client %s\r\n", (LI_Unknown == loopId)?"LI_Unknown":loop_id[loopId]);
#endif
            m_clientList.append(client);
        }
        else
        {
            clear();
        }
    }
void registerLoopClient ( iLoopControlled * client ) { if ( nullptr != client ) { #ifdef DEBUG_MQTT NbiotLoopId loopId = client -> getLoopId ( ) ; #ifdef DEBUG_COLOR debugPrintf ( " \033 \033 " ) ; #endif debugPrintf ( " \r \n " , ( LI_Unknown == loopId ) ? " " : loop_id [ loopId ] ) ; #endif m_clientList . append ( client ) ; } else { clear ( ) ; } }
\brief registerLoopClient
 \param client
\ brief registerLoopClient \ param client