diff options
Diffstat (limited to 'protocols/Facebook/src/mqtt.cpp')
-rw-r--r-- | protocols/Facebook/src/mqtt.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/protocols/Facebook/src/mqtt.cpp b/protocols/Facebook/src/mqtt.cpp index 8731e2bcd8..92370dc971 100644 --- a/protocols/Facebook/src/mqtt.cpp +++ b/protocols/Facebook/src/mqtt.cpp @@ -106,7 +106,6 @@ bool FacebookProto::MqttParse(const MqttMessage &payload) } OnLoggedIn(); - MqttPing(); break; case FB_MQTT_MESSAGE_TYPE_PUBREL: @@ -287,19 +286,14 @@ void FacebookProto::MqttSubscribe(const char *topic, ...) void FacebookProto::MqttUnsubscribe(const char *topic, ...) { - uint8_t zeroByte = 0; - MqttMessage payload(FB_MQTT_MESSAGE_TYPE_UNSUBSCRIBE, FB_MQTT_CONNECT_FLAG_QOS1); payload.writeInt16(++m_mid); payload.writeStr(topic); - payload << zeroByte; va_list ap; va_start(ap, topic); - while ((topic = va_arg(ap, const char *)) != nullptr) { + while ((topic = va_arg(ap, const char *)) != nullptr) payload.writeStr(topic); - payload << zeroByte; - } va_end(ap); MqttSend(payload); |