examples/bluetooth: In ble_advertising.py, skip appearance if not set.
This commit is contained in:
parent
1abd4764f7
commit
e089b17a20
@ -47,6 +47,7 @@ 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
|
||||
if appearance:
|
||||
_append(_ADV_TYPE_APPEARANCE, struct.pack("<h", appearance))
|
||||
|
||||
return payload
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user