Skip to content

Commit

Permalink
Fix MQTT-SN large packet
Browse files Browse the repository at this point in the history
  • Loading branch information
embhorn committed Nov 2, 2023
1 parent b5e66b4 commit 927bd9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mqtt_sn_packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -1488,7 +1488,7 @@ int SN_Packet_Read(MqttClient *client, byte* rx_buf, int rx_buf_len,
return MqttPacket_HandleNetError(client,
MQTT_TRACE_ERROR(MQTT_CODE_ERROR_NETWORK));
}
rc += len;
len += rc;
}
else {
rc = MqttSocket_Peek(client, rx_buf, 4, timeout_ms);
Expand Down

0 comments on commit 927bd9f

Please sign in to comment.