Crash fixes and ssl connection (#29)

* add missing config for setting default port for SSL in Kconfig

* free the TCP only after closing the connection , not before

* set the config in the client before we access the schema in the client

* fix typo

* dispatch also Publish event
This commit is contained in:
agmuntianu
2018-03-09 16:04:33 +01:00
committed by Tuan
parent 6d8a6c79bd
commit 5c46be5ada
3 changed files with 17 additions and 6 deletions
+8
View File
@@ -39,6 +39,14 @@ config MQTT_TCP_DEFAULT_PORT
help
Default MQTT over TCP port
config MQTT_SSL_DEFAULT_PORT
int "Default MQTT over SSL port"
default 8883
depends on MQTT_USE_CUSTOM_CONFIG
depends on MQTT_TRANSPORT_SSL
help
Default MQTT over SSL port
config MQTT_WS_DEFAULT_PORT
int "Default MQTT over Websocket port"
default 80