enabled udp server

main
Jonas Arnold 4 years ago
parent 62112d298b
commit 908e4a9280
  1. 4
      ADIS_ESP32_Eclipse/main/platform.h
  2. 2
      ADIS_ESP32_Eclipse/main/udp_server.h
  3. 2
      ADIS_ESP32_Eclipse/main/wifi.c

@ -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);

@ -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);

@ -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();

Loading…
Cancel
Save