mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
Implement the subscriber client that optionally integrates
the TLS layer and can reconnect to the broker if the
application is running in unstable network environments.
The client is compliant with all 3 levels of QoS.
Signed-off-by: Mihai Pacuraru <mpacuraru@protonmail.com>
63 lines
1.4 KiB
Text
63 lines
1.4 KiB
Text
#
|
|
# For a description of the syntax of this configuration file,
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
#
|
|
|
|
config EXAMPLES_MQTTC
|
|
tristate "Enable MQTT-C Example"
|
|
default n
|
|
depends on NETUTILS_MQTTC
|
|
---help---
|
|
Enable a simple MQTT-C publisher example
|
|
|
|
if EXAMPLES_MQTTC
|
|
|
|
config EXAMPLES_MQTTC_PROGNAME
|
|
string "Program name"
|
|
default "mqttc_pub"
|
|
|
|
config EXAMPLES_MQTTC_SUB
|
|
bool "Enable MQTT-C Subscriber Client"
|
|
default n
|
|
---help---
|
|
Enable a simple MQTT-C subscriber example alongside publisher
|
|
|
|
config EXAMPLES_MQTTC_SUB_PROGNAME
|
|
string "Subscriber program name"
|
|
default "mqttc_sub"
|
|
depends on EXAMPLES_MQTTC_SUB
|
|
|
|
config EXAMPLES_MQTTC_STACKSIZE
|
|
int "Task's stack size"
|
|
default 8192
|
|
|
|
config EXAMPLES_MQTTC_TXSIZE
|
|
int "TX Buffer size"
|
|
default 256
|
|
|
|
config EXAMPLES_MQTTC_RXSIZE
|
|
int "RX Buffer size"
|
|
default 256
|
|
|
|
config MQTT_USE_MBEDTLS
|
|
bool
|
|
default n
|
|
|
|
config EXAMPLES_MQTTC_MBEDTLS
|
|
bool "Enable MQTT over TLS (mbedTLS)"
|
|
default n
|
|
depends on NETUTILS_MQTTC_WITH_MBEDTLS
|
|
select MQTT_USE_MBEDTLS
|
|
---help---
|
|
Enable TLS/SSL support for MQTT connections using mbedTLS.
|
|
Requires NETUTILS_MQTTC_WITH_MBEDTLS to be enabled.
|
|
|
|
config EXAMPLES_MQTTC_ALLOW_UNVERIFIED_TLS
|
|
bool "Allow unverified TLS"
|
|
default n
|
|
---help---
|
|
Do not fail TLS connection if certificate verification fails. Usually
|
|
this is useful during development when connection to server with
|
|
self-signed certificates
|
|
|
|
endif
|