ChuckBell / MySQL_Connector_Arduino

Database connector library for using MySQL with your Arduino projects.
332 stars 133 forks source link

cant compile with wifi.h on ESP32 #38

Closed magiva closed 6 years ago

magiva commented 6 years ago

if i try to compile with for wemos esp32 i get ethernet errors, im using wifi.h

C:\Program Files (x86)\Arduino\libraries\Ethernet\src\utility/w5100.h:359:114: error: 'digitalPinToBitMask' was not declared in this scope

   *portOutputRegister(digitalPinToPort(ETHERNET_SHIELD_SPI_CS)) |= digitalPinToBitMask(ETHERNET_SHIELD_SPI_CS);
magiva commented 6 years ago

easy fix, swapped the referrence of ethernet.h in Packet.h to WiFi.h