bool Topics::setCallback(uint16_t topicId, TopicCallback callback){ Topic* p = getTopic(topicId); if ( p != NULL) { p->setCallback(callback); return true; }else{ return false; } }
bool Topics::setCallback(MQString* topic, TopicCallback callback){ Topic* p = getTopic(topic); if ( p != NULL) { p->setCallback(callback); return true; }else{ return false; } }