Skip to content

Commit

Permalink
compile for ARDUINO_RASPBERRY_PI_PICO_W WiFi
Browse files Browse the repository at this point in the history
  • Loading branch information
JAndrassy committed Jul 26, 2022
1 parent 70db498 commit 6969219
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ArduinoOTA.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class ArduinoOTAMdnsClass : public ArduinoOTAClass<NetServer, NetClient> {

void begin(IPAddress localIP, const char* name, const char* password, OTAStorage& storage) {
ArduinoOTAClass<NetServer, NetClient>::begin(localIP, name, password, storage);
#if defined(ESP8266) && !(defined(ethernet_h_) || defined(ethernet_h) || defined(UIPETHERNET_H))
#if (defined(ESP8266) || defined(ARDUINO_RASPBERRY_PI_PICO_W)) && !(defined(ethernet_h_) || defined(ethernet_h) || defined(UIPETHERNET_H))
mdnsSocket.beginMulticast(localIP, IPAddress(224, 0, 0, 251), 5353);
#else
mdnsSocket.beginMulticast(IPAddress(224, 0, 0, 251), 5353);
Expand Down Expand Up @@ -119,7 +119,7 @@ ArduinoOTAMdnsClass <EthernetServer, EthernetClient, EthernetUDP> ArduinoOTA;
#elif defined(UIPETHERNET_H) // no UDP multicast implementation yet
ArduinoOTAClass <EthernetServer, EthernetClient> ArduinoOTA;

#elif defined(WiFiNINA_h) || defined(WIFI_H) || defined(ESP8266) || defined(ESP32) // NINA, WiFi101 and Espressif WiFi
#elif defined(WiFiNINA_h) || defined(WIFI_H) || defined(ESP8266) || defined(ESP32) || defined(ARDUINO_RASPBERRY_PI_PICO_W) // NINA, WiFi101 and Espressif WiFi
#ifdef NO_OTA_PORT
ArduinoOTAClass <WiFiServer, WiFiClient> ArduinoOTA;
#else
Expand Down

0 comments on commit 6969219

Please sign in to comment.