Regards,
Vidyadhar
--
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.
--
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.
--
You received this message because you are subscribed to a topic in the Google Groups "MQTT" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/mqtt/HzW-BB_y7Qo/unsubscribe.
To unsubscribe from this group and all its topics, 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.
I'm not clear how you are sending any payload with a PING.The MQTT ping has a PINGREQ that takes no payload and a PINGRESP that is the same. Both are 2-byte messages.You are also confusing the byte messages of the protocol with UTF-8 Strings. Certain messages do include 0x00 bytes. That is different from trying to encode a U+0000 character as part of a UTF-8 String.Paul
Sorry for the confusion.We are not sending any payload with ping message. But the PINGREQUEST command is followed by a byte 0x00 indicating that there is no more bytes.As a part of UTF-8 string, we will be sending 0x00 as Length byte MSB for TOPIC in Publish message payload also.Our observation is that, if we increase the number of pings , then number of messages getting delivered will be reduced.Thus we thought that there is a limited number of 0x00 we can send to MQTT server.Since there is a chance that MQTT server can treat 0x00 as a NULL character, it may not be receiving any further messages from Client after a limit.This is just one of the possible explanations we can think of , but we were not able to prove in anyway that the issue is related to this.Any suggestions on debugging will be really helpful .
On Thu, Aug 3, 2017 at 2:08 PM, Paul Fremantle <paul.fr...@port.ac.uk> wrote:
I'm not clear how you are sending any payload with a PING.The MQTT ping has a PINGREQ that takes no payload and a PINGRESP that is the same. Both are 2-byte messages.You are also confusing the byte messages of the protocol with UTF-8 Strings. Certain messages do include 0x00 bytes. That is different from trying to encode a U+0000 character as part of a UTF-8 String.Paul
On 31 July 2017 at 12:37, <sur...@tantragyaansolutions.com> wrote:
Hi all,I have been working on bringing up MQTT Connection to send continuous data to Relayr Cloud platform.I am using an arduino & SIM800 module to achieve the same.I am able to connect & getting CONNACK reply from the server.After this, I am sending the data through PUBLISH.But I am unable to send more than 14-15 messages to server.I get proper PUBACK response from the server for all the successful messages.But after the limit, there is no response from server.theThis is not a timing related issue, since the same pattern is seen even if I send a message once every 10 secs.When debugged further, I found that issue is related to sending NULL character to server.The code has a ping function which sends the null character.The number of messages I can send reduces linearly as the number ping messages increases.MQTT Standard suggests that "A UTF-8 encoded string MUST NOT include an encoding of the null character U+0000"Since the TOPIC & PACKET IDENTIFIER fields of the Publish message are smaller, Length MSB & Packet identifier MSB byte of UTF-8 strings for these in the Publish message will be 0x00 i.e. NULL character.Is our issue related to Null character or are we missing anything else ?Any support would be highly appreciated.Thanks in Advance.Regards,Suresha
--
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+uns...@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.
--Paul FremantleDoctoral Researcher, University of Portsmouth, School of ComputingVisiting Scientist, Institute of the Architecture of Application Systems, StuttgartVisiting Lecturer, Software Engineering Programme, Oxford UniversityCo-Founder, WSO2
Apache Member and Committertwitter: pzfreo / skype: paulfremantle / blog: http://pzf.fremantle.org
--
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+uns...@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.
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.