On Feb 13, 2012, at 7:49 AM, Bob Frankel wrote:
hi,
it mentions in the BluetoothDesignGuidelines that active
scanning is not always performed.... can you elaborate just
when this is the caseĀ
.
Active scanning is only performed when the App is in the foreground.
as a use-case, suppose i have a thermostat this is adverstising
the current temperature.... if i have an app running in the
background that is scanning for a particular service presumably
implemented by the thermostat, will i be receiving the data in
the adverstising PDU or in the SCAN_RSP PDU (or both)???
If this App is in the background you will only receive data in the Advertising PDU.
related to this, just when will i receive a callback to my
delegate -- everytime the peripheral device broadcasts, or only
when the information in the advertising/SCAN_RSP PDUs actually
change???
This depends on what options you specify. Either we provide it the first time we see the device, or we provide it every time we see a packet from the device (regardless if the content has changed or not).
finally, just how much data can i pack into the
adversting/SCAN_RSP PDUs???
The Bluetooth 4.0 spec limits the size of the advertising packet to 31 bytes. This includes headers and delimiters. See BT 4.0 spec for details.
thanks,
bob.
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden