Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

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

    Scheduled Pinned Locked Moved LoPy
    lopy4wifi apsockets
    1 Posts 1 Posters 287 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Offline
      AlejandroReyes
      last edited by AlejandroReyes

      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 https://docs.pycom.io/ 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()
      
      wlan.init(mode=WLAN.AP,ssid='hermesh',auth=(WLAN.WPA2,'12345678'),channel=1,
      antenna=WLAN.INT_ANT,power_save=False,hidden=False)
      
      pycom.heartbeat(False)
      
      while True:
          time.sleep(2)
          if wlan.isconnected:
              pycom.rgbled(0xFF0000)```
      1 Reply Last reply Reply Quote 0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      • 1 / 1
      • First post
        Last post

      Pycom on Twitter

      Pycom