Skip to content

Commit 7f7bbe2

Browse files
pkarashchenkoacassis
authored andcommitted
examples/mqttc: add option to use MBED TLS for connections
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
1 parent 3e54ea0 commit 7f7bbe2

File tree

3 files changed

+342
-53
lines changed

3 files changed

+342
-53
lines changed

examples/mqttc/Kconfig

+9-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
config EXAMPLES_MQTTC
77
tristate "Enable MQTT-C Example"
88
default n
9-
depends on NETUTILS_MQTTC && !NETUTILS_MQTTC_WITH_MBEDTLS
9+
depends on NETUTILS_MQTTC
1010
---help---
1111
Enable a simple MQTT-C publisher example
1212

@@ -28,4 +28,12 @@ config EXAMPLES_MQTTC_RXSIZE
2828
int "RX Buffer size"
2929
default 256
3030

31+
config EXAMPLES_MQTTC_ALLOW_UNVERIFIED_TLS
32+
bool "Allow unverified TLS"
33+
default n
34+
---help---
35+
Do not fail TLS connection if certificate verification fails. Usually
36+
this is useful during development when connection to server with
37+
self-signed certificates
38+
3139
endif

0 commit comments

Comments
 (0)