Set default port to 1883 when using MQTT gateway (#565)
This commit is contained in:
+5
-1
@@ -611,7 +611,11 @@
|
|||||||
* @brief The Ethernet TCP/UDP port to open on controller or gateway.
|
* @brief The Ethernet TCP/UDP port to open on controller or gateway.
|
||||||
*/
|
*/
|
||||||
#ifndef MY_PORT
|
#ifndef MY_PORT
|
||||||
#define MY_PORT 5003
|
#ifdef MY_GATEWAY_MQTT_CLIENT
|
||||||
|
#define MY_PORT 1883
|
||||||
|
#else
|
||||||
|
#define MY_PORT 5003
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Static ip address of gateway (if this is disabled, DHCP will be used)
|
// Static ip address of gateway (if this is disabled, DHCP will be used)
|
||||||
|
|||||||
Reference in New Issue
Block a user