docs/library: Document that char_data/notify_data are also references.

pull/5944/head
Thomas Friebel 2020-04-14 00:17:25 +02:00 zatwierdzone przez Damien George
rodzic 8ee2e1fdbc
commit 1b1ceb67b2
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -68,7 +68,8 @@ Event Handling
The optional *trigger* parameter allows you to set a mask of events that The optional *trigger* parameter allows you to set a mask of events that
your program is interested in. The default is all events. your program is interested in. The default is all events.
Note: the ``addr``, ``adv_data`` and ``uuid`` entries in the tuples are Note: the ``addr``, ``adv_data``, ``char_data``, ``notify_data``, and
``uuid`` entries in the tuples are
references to data managed by the :mod:`ubluetooth` module (i.e. the same references to data managed by the :mod:`ubluetooth` module (i.e. the same
instance will be re-used across multiple calls to the event handler). If instance will be re-used across multiple calls to the event handler). If
your program wants to use this data outside of the handler, then it must your program wants to use this data outside of the handler, then it must