Skip to content

correcting confusion about BLE advertisement's PDU type

Compare
Choose a tag to compare
@2bndy5 2bndy5 released this 09 Oct 12:28
· 172 commits to master since this release

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 now FakeBLE.to_android.
  • The default value for the FakeBLE.to_android attribute is True. This means BLE advertisements use PDU type 0x42 by default which targets both iPhone & Android smartphones.
  • removed any use of the old FakeBLE.to_iphone attribute from the nrf24l01_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.