Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[paho-dev] read buffer issue in embed C Paho

 

Hello,

I am using Eclipse Paho Embedded C in synchronous mode and I subscribe for only 1 topic. I try to publish message for the subscribed topic form my Java client ( also using Eclipse Paho). I am facing the following issue.

1) I publish message "Hello" from the Java client.

2) I receive "Hello" message. No problems here.

3) I publish "123" from Java client.

4) I receive "123lo" on the Embedded C client.

If I clear the read buffer every time I receive a message then this issue is not observed. Do I have to do anything special in the callback method other than reading the payload data from MessageData* data?

Thank you.

Regards,

Pratheek Rai


Virus-free. www.avast.com

Back to the top