examples/bluetooth: Use UUIDs directly to add services to adv payload.

This commit is contained in:
Jim Mussared
2019-10-22 12:31:40 +11:00
parent 56fc3edf98
commit 3e1af5b36f
3 changed files with 15 additions and 3 deletions

View File

@@ -27,6 +27,7 @@ class BLEUART:
self._connections = set()
self._rx_buffer = bytearray()
self._handler = None
# Optionally add services=[_UART_UUID], but this is likely to make the payload too large.
self._payload = advertising_payload(name=name, appearance=_ADV_APPEARANCE_GENERIC_COMPUTER)
self._advertise()