Control a wifi relay over Siemens S71200 PLC

Hello

I want to control a wifi relay over Siemens S71200 PLC. Is it possible to control the Sonoff basic switch with S71200 over UDP? Or are there other alternative solutions for that?