zephyr/subsys/net/lib/mqtt
Flavio Santes 057f31e7e9 net/mqtt: Remove length computations for some msg fields
Currently, for the following MQTT msg fields:

- client_id
- will_topic
- user_name
- topic

their length is computed inside the routine that receives the MQTT msg.

Although this simplifies development, also imposes one restriction:
data must be null-terminated. Sometimes, data is received from other
sources and not generated by the application, so the null-terminated
constraint may be considered problematic for the user.

This patch removes the assumption that string fields are null-terminated.
Current data structures are already prepared to handle this case, so no
API change is required.

Change-Id: I5a147a5b21e0da49541cbe62baac363c8737cd3e
Signed-off-by: Flavio Santes <flavio.santes@intel.com>
2017-02-15 12:20:08 +02:00
..
Kconfig license: Replace Apache boilerplate with SPDX tag 2017-01-19 03:50:58 +00:00
Makefile net/protocols: Remove unnecessary assignement in Makefiles 2017-01-06 09:11:44 +01:00
mqtt.c net/mqtt: Fix inline doc for MQTT 2017-02-14 08:30:34 +02:00
mqtt_pkt.c net/mqtt: Remove length computations for some msg fields 2017-02-15 12:20:08 +02:00
mqtt_pkt.h net/mqtt: Fix inline doc for MQTT 2017-02-14 08:30:34 +02:00