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

    Bluetooth communication with smartphone

    Scheduled Pinned Locked Moved Discussion
    bluetoothbleserial
    2 Posts 2 Posters 1.2k 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.
    • I Offline
      iber
      last edited by

      I'm thinking about configuring some specific settings (like WiFi) through bluetooth with a custom mobile app that I'll write. To do so, I would like to send and receive JSON messages between a Lopy and a smartphone. However, I can't find how to get started (Lopy side) with what's in the documentation. Anybody can help me with these first steps?

      J 1 Reply Last reply Reply Quote 1
      • J Offline
        jmarcelino @iber
        last edited by

        @iber
        LoPy currently only supports Bluetooth LE GATT protocol which in simple terms is a key/value read+write protocol (like a simple database) and ill suited for streaming serialized data like JSON.

        You should however be able to make your mobile app write to Bluetooth LE characteristics on the LoPy which then set the WiFi and password.

        The GATTS example should give you the right idea: https://docs.pycom.io/pycom_esp32/library/network.Bluetooth.html#network.characteristic.events

        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