Project: Control robot by android app via wifi with ethernet shield+wifi router

Dear all,

I am doing a project that use android app to control a robot via wifi communication with Ethernet shield and wifi router (TP-Link WR740N)

  • Android app <-> wifi router (TP-link) <-> Arduino Ethernet Shield <-> Arduino Mega 2560.
    But I don’t know how do they work? For example, how do the Ethernet Shield and Wifi router transfer data? (Ethernet shield have to play a role as a webserver or client?)
    Anybody can help me deal with this project? any document or any turtorial?
    Thanks a lot.