If handles ESC/POS then there is a library dedicated to that, but it might need updating to handle the wired internet connection.
Actually, there seem to be several, but this one rings a bell the loudest:
This library allows you to print with thermal printers compatible with the ESC POS language in 4 different communication channels (USB, Bluetooth SPP, BLE, LAN) you can download the ble3 library from here The DEMO version prints one minute every 2. The full version of the library will be issued...
www.b4x.com
It is a donation-ware library, but from what I've seen,
@Star-Dust provides brilliant support, and if his library helps eke the best out of your apparently top-of-the-line printer, then I'm sure it'd be a worthwhile investment.