Fix compilation errors for MQTT gateway
This commit is contained in:
+6
-10
@@ -616,7 +616,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)
|
||||
@@ -718,15 +722,7 @@
|
||||
* @brief Set the name of predictable tty
|
||||
*/
|
||||
#ifndef MY_LINUX_TTY_NAME
|
||||
#define MY_LINUX_TTY_NAME "/dev/ttyMySensorsGateway"
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @def MY_LINUX_TTY_GROUPNAME
|
||||
* @brief Set the group name for the raw tty
|
||||
*/
|
||||
#ifndef MY_LINUX_TTY_GROUPNAME
|
||||
#define MY_LINUX_TTY_GROUPNAME tty
|
||||
#define MY_LINUX_TTY_NAME "/dev/ttyAMA0"
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user