Browse Source

examples/bluetooth: In ble_advertising.py, skip appearance if not set.

pull/6246/head
Jim Mussared 4 years ago
committed by Damien George
parent
commit
07aec4681f
  1. 3
      examples/bluetooth/ble_advertising.py

3
examples/bluetooth/ble_advertising.py

@ -47,7 +47,8 @@ def advertising_payload(limited_disc=False, br_edr=False, name=None, services=No
_append(_ADV_TYPE_UUID128_COMPLETE, b)
# See org.bluetooth.characteristic.gap.appearance.xml
_append(_ADV_TYPE_APPEARANCE, struct.pack("<h", appearance))
if appearance:
_append(_ADV_TYPE_APPEARANCE, struct.pack("<h", appearance))
return payload

Loading…
Cancel
Save