diff --git a/ADIS_ESP32_Eclipse/main/platform.h b/ADIS_ESP32_Eclipse/main/platform.h index 93e59cc..4d6dd0b 100644 --- a/ADIS_ESP32_Eclipse/main/platform.h +++ b/ADIS_ESP32_Eclipse/main/platform.h @@ -11,7 +11,7 @@ #define PL_CONFIG_USE_BLINKY (1) /*!< if using blinky LED */ #define PL_CONFIG_USE_WIFI (1) /*!< if using WiFi/WLAN */ #define PL_CONFIG_USE_IDENTIFY (1 && PL_CONFIG_USE_WIFI) /*!< used to identify ESP32 and robot, needed for EEE network */ -#define PL_CONFIG_USE_UDP_SERVER (0 && PL_CONFIG_USE_WIFI) /*!< UDP server, used for communication to robot */ +#define PL_CONFIG_USE_UDP_SERVER (1 && PL_CONFIG_USE_WIFI) /*!< UDP server, used for communication to robot */ #define PL_CONFIG_USE_UDP_CLIENT (0 && PL_CONFIG_USE_WIFI) /*!< UDP client, optionally available for tests */ #define PL_CONFIG_USE_PING (1 && PL_CONFIG_USE_WIFI) /*!< shell command with ping, to test network connection */ @@ -19,7 +19,7 @@ #define PL_CONFIG_USE_RS485 (0) /*!< ESP32 using RS-485 to split-flaps */ #define PL_CONFIG_USE_SNTP_TIME (0 && PL_CONFIG_USE_WIFI) #define PL_CONFIG_USE_TIME_DATE (1) /*!< if using Time and Date information */ -#define PL_CONFIG_USE_ROBO_REMOTE (0 && PL_CONFIG_USE_UDP_SERVER) /* UDP Remote controller for robot */ +#define PL_CONFIG_USE_ROBO_REMOTE (1 && PL_CONFIG_USE_UDP_SERVER) /* UDP Remote controller for robot */ /*! \brief Module and platform initialization */ void PL_Init(void); diff --git a/ADIS_ESP32_Eclipse/main/udp_server.h b/ADIS_ESP32_Eclipse/main/udp_server.h index 1fc07e9..4f8d48a 100644 --- a/ADIS_ESP32_Eclipse/main/udp_server.h +++ b/ADIS_ESP32_Eclipse/main/udp_server.h @@ -11,7 +11,7 @@ extern "C" { #endif -#define UDP_SERVER_PORT (1234) /*!< default UDP server port */ +#define UDP_SERVER_PORT (1818) /*!< default UDP server port */ /*! \brief start the UDP server */ void UDP_Server_Start(void); diff --git a/ADIS_ESP32_Eclipse/main/wifi.c b/ADIS_ESP32_Eclipse/main/wifi.c index 257407b..bbe24de 100644 --- a/ADIS_ESP32_Eclipse/main/wifi.c +++ b/ADIS_ESP32_Eclipse/main/wifi.c @@ -286,7 +286,7 @@ static void WiFiTask(void *pv) { McuLog_error("failed getting SNTP time."); } #endif -#if 1 +#if 0 } else if (isConnected) { ESP_LOGI(TAG, "still connected."); APP_WiFi_PrintIP();