Skip to content
Commit e5f1112b authored by Michael Scott's avatar Michael Scott Committed by Jukka Rissanen
Browse files

net/mqtt: combine mqtt_parser for PUBLISHER and SUBSCRIBER



Currently, app type MQTT_APP_PUBLISHER_SUBSCRIBER is not supported.
mqtt_init() will return EINVAL because the context rcv function is
either mqtt_publisher_parser or mqtt_subscriber_parser (not both).

Let's combine these functions into mqtt_parser and remove the app
type check from mqtt_init().

Change-Id: I60460e011395864706e293c997e9f8a65681b368
Signed-off-by: default avatarMichael Scott <michael.scott@linaro.org>
parent 5fab97c9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment