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 - updating multiple notify characteristics at the same time

    Scheduled Pinned Locked Moved FiPy
    fipybluetooth
    1 Posts 1 Posters 146 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.
    • J Offline
      james_
      last edited by

      I am building a simple bluetooth server using a FiPy. The server has 1 service has a handful of characteristics. 2 of which are setup as notify.

      I am trying to periodically update the 2 notify characteristics with new values by calling .value(...) on the 2 characteristics.

      When I connect with a test device, I only ever see 1 of the 2 characteristics update.

      I can set a small timeout (~100ms) like this

      Timer.Alarm(handler=lambda args: char.value(counter*2), ms=50, periodic=False)
      

      and update them both, but not at the same time.

      Are there limitations on how ble.char.value(...) can be called?

      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