1

Is it possible to know whether advertising packet is connectable or non connectable in Android?

soumil gravatar image

asked 2017-05-19 12:49:46 +0200

Hi,

Is it possible to know which type of advertising packet is being advertised by the slave i.e whether it is a connectable or a non connectable advertising packet by the master device?

edit retag flag offensive close delete report spam

1 answer

Sort by » oldest newest most voted
0
Kristin gravatar image

answered 2017-05-22 12:53:31 +0200

When an Android device is scanning, the scan record contains the raw data from an advertising device: BluetoothAdapter.LeScanCallback --> onLeScan() --> scanRecord.

In an advertising packet, the setup for the information (Advertising Data Type) is the following: Length - Type - Value.

The data type ID's can be found here. To see how raw advertising data can be decoded, you can use the nRF Connect app by using the app: press on an advertising device --> "RAW" to see the raw advertising data.

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-05-19 12:49:46 +0200

Seen: 84 times

Last updated: May 22