hirotakaster / MQTT

MQTT for Photon, Spark Core
Other
216 stars 118 forks source link

MQTT::QOS2 not publishing messages. #20

Closed harmeetsingh-work closed 8 years ago

harmeetsingh-work commented 8 years ago

I tried as suggested in example but not getting any messages in Paho Client, but for MQTT::QOS1, its working fine.

uint16_t messageId; client.publish(topic, (uint8_t*)message_buff, strlen(message_buff), true, MQTT::QOS2, &messageId); Serial.println(messageId);

hirotakaster commented 8 years ago

now I implement PUBREL message.

harmeetsingh-work commented 8 years ago

Thanx, now working :)