Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Bluetooth Low Energy Heart Listener Example cannot work on MAC OS X

    General and Desktop
    bluetooth notify
    1
    1
    923
    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.
    • L
      LeonLing last edited by

      When the example start to writeDescriptor(), the error occurs:
      [OSXBTCentralManager peripheral:didUpdateNotificationStateForCharacteristic:error:] failed with error Error Domain=CBErrorDomain Code=1 "One or more parameters were invalid." UserInfo=0x7fdd2460cd80 {NSLocalizedDescription=One or more parameters were invalid.}

      And my heat rate sensor device don't receive any write request.
      The writeDescriptor() op is to change the CCCD to enable notifications.
      What's more, when the device is in notifying state and the CCCD descriptor's value returns 0001, the error occurs before the writeDescriptor() op.

      The same code works well on iPad and Android, but not on my Mac mini with Yosemite 10.10.5.

      Could anyone give me some clue?

      1 Reply Last reply Reply Quote 0
      • First post
        Last post