PUBLISH message sent from server

31 views
Skip to first unread message

kushal bhattacharya

unread,
Feb 12, 2017, 4:02:59 AM2/12/17
to MQTT
I am having  some trouble  regarding  implementing  the algorithm  when suppose the server sends 2 publish message of same topic  to the  same client  in  that  case  what  would  would  the  behaviour from  server  and  client .Presently when  i am sending  2 PUBLISH messages from  the server  the paho  client is responding  to the last PUBLISH message

kushal bhattacharya

unread,
Feb 12, 2017, 4:06:35 AM2/12/17
to MQTT
i mean   do i have to  put  some delay  in  between  the  2 PUBLISH messages  from  the  broker  end ,i dont  know  am not really  not in  that  idea but still am  having this idea

ನಾಗೇಶ್ ಸುಬ್ರಹ್ಮಣ್ಯ (Nagesh S)

unread,
Feb 12, 2017, 7:01:08 AM2/12/17
to mq...@googlegroups.com
Have you explored the DUP flag of the PUBLISH packet? I am not sure, I understand your case; but, you might want to take a peek into the PUBLISH packet for DUP. http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Toc398718037

On Sun, Feb 12, 2017 at 2:36 PM, kushal bhattacharya <bhattachar...@gmail.com> wrote:
i mean   do i have to  put  some delay  in  between  the  2 PUBLISH messages  from  the  broker  end ,i dont  know  am not really  not in  that  idea but still am  having this idea

--
To learn more about MQTT please visit http://mqtt.org
---
You received this message because you are subscribed to the Google Groups "MQTT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mqtt+unsubscribe@googlegroups.com.
To post to this group, send email to mq...@googlegroups.com.
Visit this group at https://groups.google.com/group/mqtt.
For more options, visit https://groups.google.com/d/optout.

kushal bhattacharya

unread,
Feb 12, 2017, 7:05:24 AM2/12/17
to MQTT
when  i  am  sending data  from  the broker with  qos   1  there  is no  packet  loss  on  the  client  is  it   advisable  for  fast  communication   that  i can  use  qos  2.In  some  blog   i  read  that  due to  its  three  way  communication (arised  from PUBLISH message)   the  communication  may  become  slow  and there may  be packet  loss

kushal bhattacharya

unread,
Feb 12, 2017, 7:17:11 AM2/12/17
to MQTT
The scenario  is  i am  sending sensor data  from  paho  clients at fast intervals to  the   broker  and  then  i have  applied the  necssary  parsing  mechanisms   on  the  broker  side  in  order  to  prevent  any remaining packets  to be  processed  by the  broker
Reply all
Reply to author
Forward
0 new messages