Fix compilation errors for MQTT gateway

This commit is contained in:
Marcelo Aquino
2016-08-19 13:45:51 -03:00
parent b8d4a6a943
commit cb8c98431e
6 changed files with 53 additions and 63 deletions
+6 -10
View File
@@ -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
/**