correcting confusion about BLE advertisement's PDU type
Thanks to generous testing done by @jerryneedell, This release clears up some confusion/misconception I had about what PDU type to use in the BLE advertisements.
original misconception
PDU type 0x40
only worked for iPhone, and PDU type 0x42
only worked for Android. Thus the FakeBLE.to_iphone
attribute would act in accordance with this misconception.
correct implementation
PDU type 0x40
does not work for Android, but it does work for iPhone. PDU type 0x42
works for both iPhone and Android smartphones.
Changes
- The
FakeBLE.to_iphone
attribute is nowFakeBLE.to_android
. - The default value for the
FakeBLE.to_android
attribute isTrue
. This means BLE advertisements use PDU type0x42
by default which targets both iPhone & Android smartphones. - removed any use of the old
FakeBLE.to_iphone
attribute from thenrf24l01_fake_ble_test.py
example. - Updated the docs accordingly
- Marked the new
FakeBLE.to_android
attribute for deprecation (on next major release) as it is no longer necessary to specify which BLE advertising PDU type to use.