zephyr/samples/net
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
..
coaps_client net: nbuf: Add timeout to net_buf getters 2017-02-08 10:12:35 +02:00
coaps_server net: nbuf: Add timeout to net_buf getters 2017-02-08 10:12:35 +02:00
common
dhcpv4_client samples/dhcpv4_client: Switch from private net_sprint_ipv4_addr to public net_addr_ntop 2017-02-09 14:27:09 +00:00
dns_client net/dns: Update QEMU prj file 2017-02-14 08:30:34 +02:00
echo_client samples: net: Remove obsolete prj_slip.conf from echo-* 2017-02-15 12:20:08 +02:00
echo_server samples: net: Remove obsolete prj_slip.conf from echo-* 2017-02-15 12:20:08 +02:00
http_client net: nbuf: Add timeout to net_buf getters 2017-02-08 10:12:35 +02:00
http_server samples/net/http: Add HTTP over TLS sample application 2017-02-14 08:30:35 +02:00
ieee802154 drivers/net/ieee802154: Change configuration prefix 2017-02-08 10:12:35 +02:00
irc_bot net: samples: Unref net_buf using net_nbuf_unref 2017-02-09 12:29:29 +02:00
leds_demo net: remove obsolete CONFIG_NET_YAIP 2017-02-14 08:30:33 +02:00
mbedtls_dtlsclient samples/mbedtls_dtls_client: Fix wild write in entropy_source 2017-02-09 14:26:58 +00:00
mbedtls_dtlsserver samples/mbedtls_dtls_server: Use k_uptime_get_32() 2017-02-09 14:26:57 +00:00
mbedtls_sslclient mbedtls: add arduino 101 configuration to ssl client sample 2017-02-08 10:12:36 +02:00
mqtt_publisher net/mqtt: Remove length computations for some msg fields 2017-02-15 12:20:08 +02:00
telnet tests: net: whitelist boards for telnet server 2017-02-11 07:00:39 +00:00
wpan_serial net: nbuf: Add timeout to net_buf getters 2017-02-08 10:12:35 +02:00
wpanusb net: nbuf: Add timeout to net_buf getters 2017-02-08 10:12:35 +02:00
zoap_client net: samples: Unref net_buf using net_nbuf_unref 2017-02-09 12:29:29 +02:00
zoap_server samples/zoap-server: Update docs with information about libcoap 2017-02-14 08:30:33 +02:00
zperf net: remove obsolete CONFIG_NET_YAIP 2017-02-14 08:30:33 +02:00
net.rst doc: update networking with Qemu section 2017-02-03 15:59:19 +02:00