What’s the brand of the motor?
Meanwhile, see the FAQ:
FAQ: WIFI Devices in ST? How can I integrate a WiFi or Bluetooth device that isn’t on the official compatibility list?