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

    LoPy4 BLE server

    Scheduled Pinned Locked Moved LoPy
    lopy4ble gatt lopyble lopyble serviceble receive dat
    4 Posts 2 Posters 464 Views 2 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.
    • X Offline
      xSKlero
      last edited by

      Hi,
      I am trying to make an LoPy4 BLE server.
      I need to connect to my lopy with my phone and control leds from an application that I made.
      How can I do?
      I tried with Bluetooth.service() and Bluetooth.advertise()

      Thanks.

      J 1 Reply Last reply Reply Quote 0
      • J Offline
        jcaron @xSKlero
        last edited by

        @xsklero Please share your code, state what you expect it to do, and what actually happens (or doesn't), including any error messages.

        Note that you should probably also add a characteristic to your service if you want to do anything useful.

        What are you using on your phone to scan for devices, connect, and update the characteristic? Your own app? Something else? Please share details (including the relevant parts of your code if any).

        X 1 Reply Last reply Reply Quote 1
        • X Offline
          xSKlero @jcaron
          last edited by

          @jcaron I want to control some leds by using bluetooth or web server (wifi).
          I can create an application with MIT AppInventor to control this leds, or maybe with an web server I could make an POST method.
          I tried with examples on pycom forum so I don't have my own code, it's just a copy of others just for trying.

          I am new with lopy board, so if you could help me I would be happy.
          Thanks a lot.

          J 1 Reply Last reply Reply Quote 0
          • J Offline
            jcaron @xSKlero
            last edited by

            @xsklero There's an example of a BLE server here: https://docs.pycom.io/firmwareapi/pycom/network/bluetooth/gattscharacteristic.html

            Whatever you try, if you have an issue, you need to be more specific. Tell us what code you are using and the exact issue you are facing.

            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