Skip to content
Commit 9e6a6f3b authored by Flavio Santes's avatar Flavio Santes Committed by Jukka Rissanen
Browse files

net/mqtt: Add the "malformed" callback to the MQTT ctx structure



Add the malformed callback that will be executed when a message
is received and it does not follow the MQTT v3.1.1 spec.

There is another case when this callback may be executed: when
the IP stack reception buffer's size is not enough to hold an
MQTT message.

The publisher and subscriber parser routines are updated to make
use of this callback. Inline documentation is also updated.

Change-Id: Id1d34336c4322673ca85f2db0b8d432db3c9afa8
Signed-off-by: default avatarFlavio Santes <flavio.santes@intel.com>
parent 4a17932d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment