Skip to content
Snippets Groups Projects
Commit 86855848 authored by Zbigniew Bodek's avatar Zbigniew Bodek
Browse files

Kconfig: Add option to toggle app's function from publisher to subscriber


When CONFIG_MQTT_SUBSCRIBER=y the application should switch
modes from being a publisher on the topic to being a subscriber
on that topic.

Signed-off-by: default avatarZbigniew Bodek <zbigniew.bodek@huawei.com>
parent 08890404
No related branches found
No related tags found
No related merge requests found
......@@ -21,4 +21,11 @@ config NET_SAMPLE_APP_MAX_CONNECTIONS
send NET_SAMPLE_APP_MAX_ITERATIONS amount of MQTT sample messages.
A value of zero means to continue forever.
config MQTT_SUBSCRIBER
bool "Switches main app function from publisher to subscriber"
help
Switches main app function from publisher to subscriber.
When changed to "true", the application will not publish
on any topic but rather subscribe to the topic.
source "Kconfig.zephyr"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment