omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    CoreBluetooth: How to get advertisement data and scan response?

    Pythonista
    3
    5
    4100
    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.
    • eric
      eric last edited by

      Hi,

      Is there a way to get the BLE scan response when scanning for devices?

      Is there a way to get advertisement data from surrounding BLE device?

      Cheers,

      Eric T

      1 Reply Last reply Reply Quote 0
      • ccc
        ccc last edited by

        Can you provide some code along with these questions? http://omz-software.com/pythonista/docs/ios/cb.html Seems to have great working examples that should show you what is possible.

        1 Reply Last reply Reply Quote 0
        • eric
          eric last edited by

          From the documentation, I couldn't find any info about the scan response...

          So I was wondering if there is another way to access the advertised data. Or if there is just no way?

          My BLE device uses BLE advertising to give some info to the Central. And I was willing to use pythonista as a debug tool to troubleshot my device, but it seems it won't be possible...

          Cheers,
          Eric T.

          1 Reply Last reply Reply Quote 0
          • JonB
            JonB last edited by

            If you are willing to delve into objc_util, you should be able to implement a central manager delegate, and implement centralManager_didDiscoverPeripheral_advertisementData_RSSI_, I think.. Haven't tried it though.

            1 Reply Last reply Reply Quote 0
            • eric
              eric last edited by

              Thx for your reply JonB.

              I might just go for a std ObjC app I would have to dig through the objc_util thing ^^

              The thing I don't understand is why the cb module doesn't expose the advData and RSSI params from the CoreBluetooth API.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Powered by NodeBB Forums | Contributors