see the examples in IDE for the Arduino_Uno_WiFi_Dev_Ed_Library.
the UnoWiFiDevEd libray doesn't implement the standard Arduino networking API like the Ethernet library or the WiFi library.
The standard networking API si for Uno WiFi Developer Edition implemented in WiFi Link firmware and library.