mirror of
https://github.com/eclipse/paho.mqtt-sn.embedded-c.git
synced 2025-12-13 07:26:52 +01:00
Fixing issue #72: Setting minimum message length to 2.
Signed-off-by: seko24 <seb12@mailbox.org>
This commit is contained in:
@@ -248,7 +248,7 @@ int MQTTSNstrlen(MQTTSNString MQTTSNString)
|
||||
int MQTTSNPacket_read(unsigned char* buf, int buflen, int (*getfn)(unsigned char*, int))
|
||||
{
|
||||
int rc = MQTTSNPACKET_READ_ERROR;
|
||||
const int MQTTSN_MIN_PACKET_LENGTH = 3;
|
||||
const int MQTTSN_MIN_PACKET_LENGTH = 2;
|
||||
int len = 0; /* the length of the whole packet including length field */
|
||||
int lenlen = 0;
|
||||
int datalen = 0;
|
||||
|
||||
Reference in New Issue
Block a user