MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / unsubscribe

Method unsubscribe

src/core/MqttClient.cpp:240–250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238}
239
240void MqttClient::unsubscribe(const QString& topic)
241{
242#ifdef HAVE_MQTT
243 m_pendingTopics.removeAll(topic);
244 if (m_connected && m_mosq) {
245 mosquitto_unsubscribe(m_mosq, nullptr, topic.toUtf8().constData());
246 }
247#else
248 Q_UNUSED(topic);
249#endif
250}
251
252void MqttClient::publish(const QString& topic, const QByteArray& payload)
253{

Callers

nothing calls this directly

Calls 1

removeAllMethod · 0.80

Tested by

no test coverage detected