Send data from Android device to Lopy4 via Wifi (Sockets)

  • Recently I could send data from Android devices to Lopy using Bluetooth and then send this data to another Lopy via LoRa, now I'm tring to replace the Bluetooth with Wifi but as I was reading the documentation on this page I realized there's only info about how to configure Lopy as AP, however what I need is to send/receive data from Android Devices, can someone tell me how to do this? Or just give a page where I can learn about it.
    This is what I've done, I don't know what to do to send data or even receive it.

    import time
    from network import WLAN
    import pycom
    wlan = WLAN()
    while True:
        if wlan.isconnected:

Pycom on Twitter