lathoub / Arduino-AppleMIDI-Library

Send and receive MIDI messages over Ethernet (rtpMIDI or AppleMIDI)
Other
306 stars 66 forks source link

Example not working #95

Closed xelarep closed 3 years ago

xelarep commented 3 years ago

Hi, tried to run the Example "ESP8266_NoteOnOffEverySec". However some trouble:

I don't know where to start - I get the a long list of errors starting with

In file included from /Users/alexander/Documents/Arduino/ESP8266_WMIDI/ESP8266_WMIDI.ino:7:0: /Users/alexander/Documents/Arduino/libraries/AppleMIDI/src/AppleMIDI.h:297:27: error: 'EthernetUDP' was not declared in this scope APPLEMIDI_CREATE_INSTANCE(EthernetUDP, MIDI, "Arduino", DEFAULT_CONTROL_PORT); ^ /Users/alexander/Documents/Arduino/libraries/AppleMIDI/src/AppleMIDI.h:293:43: note: in definition of macro 'APPLEMIDI_CREATE_INSTANCE' APPLEMIDI_NAMESPACE::AppleMIDISession Apple##Name(SessionName, Port); \ ^ /Users/alexander/Documents/Arduino/ESP8266_WMIDI/ESP8266_WMIDI.ino:16:1: note: in expansion of macro 'APPLEMIDI_CREATE_DEFAULTSESSION_INSTANCE' APPLEMIDI_CREATE_DEFAULTSESSION_INSTANCE(); ^

Any Help or working example for the ESP8266 appreciated

My Toolchain is basically OK (I can run Blink, FastLED or connect to WiFi)

Alexander

lathoub commented 3 years ago

Have you selected theWeMos D1 R1 in the boards? EthernetUDP is using by the AVR boards (Uno, Leonardo, ...), not the ESP8266 boards that use

The example sketch should start with

#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <WiFiUdp.h>

//....
xelarep commented 3 years ago

Yes, it's the Wemos R1 D1, and it's activated (I double checked with a different sketch and downloaded a FastLED sample...).

The example sketch is the "ESP8266_NoteOnOffEverySec", i.e. headers as you mentioned - even with the wrong example ssid/password...

lathoub commented 3 years ago

OK, don't use the version from the library management (delete the 2.1.0 version in the library dir) - then clone the latest master branch (or download the zipfile) and try again with the same example.

xelarep commented 3 years ago

OK, thx. Will check this later the week and get back.

xelarep commented 3 years ago

OK, replacing the 'AppleMIDI' library folder by the current Github-master let me build, download and run the ESP8266 Sample. Thx!

lathoub commented 3 years ago

Thanks for checking - looks like I need to releasse a newer version to the Arduino Library manager to include ESP8266 support.

lathoub commented 3 years ago

Thanks for reporting and checking @xelarep