How do I use rtpMIDI with Arduino Mega and ESP8266?

I'm trying to make 5-pin MIDI to rtpMIDI converter, using Arduino Mega and ESP8266.

The problem is, I don't exactly know how to use ESP8266 as a Wifi shield alternative for Arduino Mega. But this page on GitHub for AppleMIDI library says it does support ESP8266 and Mega.

The problem is, I had to use both. This is my thesis, and it's not easy to change the specification.
Please help me :frowning: Thanks!

Why do you need the Mega at all? The ESP8266 is perfectly capable of receiving and transmitting MIDI on its own.

Pieter

PieterP:
Why do you need the Mega at all? The ESP8266 is perfectly capable of receiving and transmitting MIDI on its own.

Pieter

At first, I thought it would be easy.
I was wrong. :frowning:

also, I was planning to power it with power brick. Arduino has USB, so yeah ...

Is getting this board a good idea? It says it is an arduino with wifi R3 built in.