Open alomdj00 opened 3 years ago
Please see the AppleMIDI documentation: Arduino-AppleMIDI-Library/wiki/Migration-from-2.x-to-3.x
I have no time to fix the Control Surface example right now, but you can just remove the problematic line from your setup (or use the 2.x version of the AppleMIDI library).
He descargado la version 2.2 de apple midi y ahora me ha tirado mas errores.
Por lo pronto seguire con el diseño del pcb, espero puedas arreglarlo mas adelante.
Aqui dejo los errores que tira ahora.
In file included from C:\Users\Alomi\Desktop\arduino-1.8.12\libraries\WiFi\src\WiFiUdp.cpp:29:0:
C:\Users\Alomi\Desktop\arduino-1.8.12\libraries\WiFi\src\WiFiUdp.h:27:7: error: redefinition of 'class WiFiUDP'
class WiFiUDP : public UDP {
^
In file included from C:\Users\Alomi\Desktop\arduino-1.8.12\libraries\WiFi\src\utility/wifi_drv.h:26:0,
from C:\Users\Alomi\Desktop\arduino-1.8.12\libraries\WiFi\src\WiFiUdp.cpp:26:
C:\Users\Alomi\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\libraries\ESP8266WiFi\src/WiFiUdp.h:32:7: error: previous definition of 'class WiFiUDP'
class WiFiUDP : public UDP, public SList
^
C:\Users\Alomi\Desktop\arduino-1.8.12\libraries\WiFi\src\WiFiUdp.cpp: In constructor 'WiFiUDP::WiFiUDP()':
C:\Users\Alomi\Desktop\arduino-1.8.12\libraries\WiFi\src\WiFiUdp.cpp:35:22: error: class 'WiFiUDP' does not have any field named '_sock'
WiFiUDP::WiFiUDP() : _sock(NO_SOCKET_AVAIL) {}
^
C:\Users\Alomi\Desktop\arduino-1.8.12\libraries\WiFi\src\WiFiUdp.cpp: In member function 'virtual uint8_t WiFiUDP::begin(uint16_t)':
C:\Users\Alomi\Desktop\arduino-1.8.12\libraries\WiFi\src\WiFiUdp.cpp:45:9: error: '_sock' was not declared in this scope
_sock = sock;
^
C:\Users\Alomi\Desktop\arduino-1.8.12\libraries\WiFi\src\WiFiUdp.cpp:46:9: error: '_port' was not declared in this scope
_port = port;
^
C:\Users\Alomi\Desktop\arduino-1.8.12\libraries\WiFi\src\WiFiUdp.cpp: In member function 'virtual int WiFiUDP::available()':
C:\Users\Alomi\Desktop\arduino-1.8.12\libraries\WiFi\src\WiFiUdp.cpp:56:7: error: '_sock' was not declared in this scope
if (_sock != NO_SOCKET_AVAIL)
^
C:\Users\Alomi\Desktop\arduino-1.8.12\libraries\WiFi\src\WiFiUdp.cpp: In member function 'virtual void WiFiUDP::stop()':
C:\Users\Alomi\Desktop\arduino-1.8.12\libraries\WiFi\src\WiFiUdp.cpp:66:8: error: '_sock' was not declared in this scope
if (_sock == NO_SOCKET_AVAIL)
^
C:\Users\Alomi\Desktop\arduino-1.8.12\libraries\WiFi\src\WiFiUdp.cpp:69:26: error: '_sock' was not declared in this scope
ServerDrv::stopClient(_sock);
^
C:\Users\Alomi\Desktop\arduino-1.8.12\libraries\WiFi\src\WiFiUdp.cpp: In member function 'virtual int WiFiUDP::beginPacket(IPAddress, uint16_t)':
C:\Users\Alomi\Desktop\arduino-1.8.12\libraries\WiFi\src\WiFiUdp.cpp:88:7: error: '_sock' was not declared in this scope
if (_sock == NO_SOCKET_AVAIL)
^
C:\Users\Alomi\Desktop\arduino-1.8.12\libraries\WiFi\src\WiFiUdp.cpp:90:7: error: '_sock' was not declared in this scope
if (_sock != NO_SOCKET_AVAIL)
^
C:\Users\Alomi\Desktop\arduino-1.8.12\libraries\WiFi\src\WiFiUdp.cpp: In member function 'virtual int WiFiUDP::endPacket()':
C:\Users\Alomi\Desktop\arduino-1.8.12\libraries\WiFi\src\WiFiUdp.cpp:101:32: error: '_sock' was not declared in this scope
return ServerDrv::sendUdpData(_sock);
^
C:\Users\Alomi\Desktop\arduino-1.8.12\libraries\WiFi\src\WiFiUdp.cpp: In member function 'virtual size_t WiFiUDP::write(const uint8_t*, size_t)':
C:\Users\Alomi\Desktop\arduino-1.8.12\libraries\WiFi\src\WiFiUdp.cpp:111:27: error: '_sock' was not declared in this scope
ServerDrv::insertDataBuf(_sock, buffer, size);
^
C:\Users\Alomi\Desktop\arduino-1.8.12\libraries\WiFi\src\WiFiUdp.cpp: In member function 'virtual int WiFiUDP::read()':
C:\Users\Alomi\Desktop\arduino-1.8.12\libraries\WiFi\src\WiFiUdp.cpp:125:23: error: '_sock' was not declared in this scope
ServerDrv::getData(_sock, &b);
^
C:\Users\Alomi\Desktop\arduino-1.8.12\libraries\WiFi\src\WiFiUdp.cpp: In member function 'virtual int WiFiUDP::read(unsigned char*, size_t)':
C:\Users\Alomi\Desktop\arduino-1.8.12\libraries\WiFi\src\WiFiUdp.cpp:137:31: error: '_sock' was not declared in this scope
if (!ServerDrv::getDataBuf(_sock, buffer, &size))
^
C:\Users\Alomi\Desktop\arduino-1.8.12\libraries\WiFi\src\WiFiUdp.cpp: In member function 'virtual int WiFiUDP::peek()':
C:\Users\Alomi\Desktop\arduino-1.8.12\libraries\WiFi\src\WiFiUdp.cpp:152:22: error: '_sock' was not declared in this scope
ServerDrv::getData(_sock, &b, 1);
^
C:\Users\Alomi\Desktop\arduino-1.8.12\libraries\WiFi\src\WiFiUdp.cpp: In member function 'virtual IPAddress WiFiUDP::remoteIP()':
C:\Users\Alomi\Desktop\arduino-1.8.12\libraries\WiFi\src\WiFiUdp.cpp:166:25: error: '_sock' was not declared in this scope
WiFiDrv::getRemoteData(_sock, _remoteIp, _remotePort);
^
C:\Users\Alomi\Desktop\arduino-1.8.12\libraries\WiFi\src\WiFiUdp.cpp: In member function 'virtual uint16_t WiFiUDP::remotePort()':
C:\Users\Alomi\Desktop\arduino-1.8.12\libraries\WiFi\src\WiFiUdp.cpp:176:25: error: '_sock' was not declared in this scope
WiFiDrv::getRemoteData(_sock, _remoteIp, _remotePort);
^
exit status 1 Error compilando para la tarjeta NodeMCU 1.0 (ESP-12E Module).
Muchas gracias. Un saludo
Your library setup is messed up. The WiFi library is part of the ESP8266 or ESP32 Core, it should not be in your libraries
folder at all.
Hola peter, he estado tratando de compilar esp8266 para wifi y me ha resultado imposible, estoy utilizando la ultima version de applemidi desde el repositorio de github, asi como tu ultima version de control surface, probe tanto como con la rama new imput y la rama maestra y me salta el mismo error
Aqui el error
C:\Users\Alomi\AppData\Local\Temp\arduino_modified_sketch_722356\AppleMIDI.ino: In function 'void setup()':
AppleMIDI:186:13: error: 'class appleMidi::AppleMIDISession' has no member named 'setHandleError'
AppleMIDI.setHandleError(onAppleMidiError);
exit status 1 'class appleMidi::AppleMIDISession' has no member named 'setHandleError'
Muchas gracias por tu ayuda.