Since it is a pure switch, it will probably not work directly. You would need a router in between, e.g.
Ubiquiti USG: Unifi Security Gateway together with TP-LINK MC220L or
Ubiquiti USG-PRO-4 with TL-SM321B. But this is all just theory, maybe someone here already has a similar setup running successfully.