1

How to access LE discoverable flags on iOS?

micha- gravatar image

asked 2017-09-13 12:38:35 +0200

Hello,

is it possible to access the LE Limited/General Discoverable flags on iOS?

Thanks!

edit retag flag offensive close delete report spam

Comments

Hi michael! Could you please elaborate on what you want to achieve? Do you want to use your phone to see what advertising flag is set on your BLE device?

Joakim Jakobsen ( 2017-09-18 15:37:35 +0200 )editconvert to answer

Hi, yes in fact we would like to know if the BLE device is in Limited or General Discoverable mode. It is easy on Android. However, we haven't been able to figure out a way to do this on iOS.

michael ( 2017-09-18 15:57:20 +0200 )editconvert to answer

1 answer

Sort by » oldest newest most voted
0
Joakim-Jakobsen gravatar image

answered 2017-09-19 16:29:33 +0200

Hi Michael!

As this is more of an apple development case, you might find more relevant information on other forums.

However, if you take a look at this site:

When the central manager object discovers a peripheral, it calls the centralManager(_:didDiscover:advertisementData:rssi:) method of its delegate object.

When following the link above we find that the advertisement data can be accessed through the keys listed in Advertisement Data Retrieval Keys. The way I interpret the keys, the flags is not available on iOS, and the RAW advertisement data is hidden.

You can look at this forum-post discussing a similar topic:

Hope that helps.
Best regards,
Joakim.

edit flag offensive delete publish link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer. Do not ask a new question or reply to an answer here.

[hide preview]

User menu

    or sign up

Recent questions

Question Tools

1 follower

Stats

Asked: 2017-09-13 12:38:35 +0200

Seen: 105 times

Last updated: Sep 19