Set default port to 1883 when using MQTT gateway (#565)

This commit is contained in:
Marcelo Aquino
2016-08-20 12:45:56 +02:00
committed by Olivier
parent c925dd6f5e
commit 2049bc4449
+5 -1
View File
@@ -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)