diff --git a/Arduino/ArduinoParticipant.cpp b/Arduino/ArduinoParticipant.cpp index f74a746..b283052 100644 --- a/Arduino/ArduinoParticipant.cpp +++ b/Arduino/ArduinoParticipant.cpp @@ -19,7 +19,9 @@ namespace RoboidControl { namespace Arduino { +#if defined(ARDUINO) && defined(HAS_WIFI) WiFiUDP* udp; +#endif void ParticipantUDP::Setup() { #if defined(ARDUINO) && defined(HAS_WIFI) diff --git a/Participants/ParticipantUDP.cpp b/Participants/ParticipantUDP.cpp index 247b7c9..f946a00 100644 --- a/Participants/ParticipantUDP.cpp +++ b/Participants/ParticipantUDP.cpp @@ -25,9 +25,7 @@ namespace RoboidControl { -ParticipantUDP::ParticipantUDP(int port) { - this->ipAddress = "0.0.0.0"; - this->port = port; +ParticipantUDP::ParticipantUDP(int port) : Participant("0.0.0.0", port) { this->remoteSite = nullptr; if (this->port == 0) this->isIsolated = true;