From 2049bc44494c66fdc4e41f25fed314f7c62956a4 Mon Sep 17 00:00:00 2001 From: Marcelo Aquino Date: Sat, 20 Aug 2016 07:45:56 -0300 Subject: [PATCH] Set default port to 1883 when using MQTT gateway (#565) --- MyConfig.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/MyConfig.h b/MyConfig.h index 9582a1d..a186c6c 100644 --- a/MyConfig.h +++ b/MyConfig.h @@ -611,7 +611,11 @@ * @brief The Ethernet TCP/UDP port to open on controller or gateway. */ #ifndef MY_PORT -#define MY_PORT 5003 + #ifdef MY_GATEWAY_MQTT_CLIENT + #define MY_PORT 1883 + #else + #define MY_PORT 5003 + #endif #endif // Static ip address of gateway (if this is disabled, DHCP will be used)