Fix WSS default port selection through menuconfig.

Evaluate the correct define to select default port.

 - Closes https://github.com/espressif/esp-mqtt/issues/223
This commit is contained in:
Euripedes Rocha
2022-05-16 11:48:42 -03:00
committed by David Čermák
parent 64f88b4412
commit f6caaff254

View File

@@ -60,7 +60,7 @@
#define MQTT_WS_DEFAULT_PORT 80
#endif
#ifdef MQTT_WSS_DEFAULT_PORT
#ifdef CONFIG_MQTT_WSS_DEFAULT_PORT
#define MQTT_WSS_DEFAULT_PORT CONFIG_MQTT_WSS_DEFAULT_PORT
#else
#define MQTT_WSS_DEFAULT_PORT 443