Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit 248723a

Browse files
author
iwahdan88
committed
docs:Updated Bluetooth example
1 parent b22b73a commit 248723a

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

docs/library/network.Bluetooth.rst

+1-13
Original file line numberDiff line numberDiff line change
@@ -289,18 +289,12 @@ Constants
289289

290290
Characteristic properties (bit values that can be combined)
291291

292-
.. data:: Bluetooth.CHAR_CONFIG_NOTIFY
293-
Bluetooth.CHAR_CONFIG_INDICATE
294-
295-
Characteristic configurations representing the current value of the characteristic's configuration descriptor.
296-
297292
.. data:: Bluetooth.CHAR_READ_EVENT
298293
Bluetooth.CHAR_WRITE_EVENT
299294
Bluetooth.NEW_ADV_EVENT
300295
Bluetooth.CLIENT_CONNECTED
301296
Bluetooth.CLIENT_DISCONNECTED
302297
Bluetooth.CHAR_NOTIFY_EVENT
303-
Bluetooth.CHAR_SUBSCRIBE_EVENT
304298

305299
Charactertistic callback events
306300

@@ -424,12 +418,6 @@ The following class allows you to manage characteristics from a **Client**.
424418

425419
characteristic.properties()
426420

427-
.. method:: characteristic.config()
428-
429-
Returns an integer indicating the client configuration of the characteristic. Configurations are represented by bit values that can be ORed together. The configuration is often updated when the CHAR_SUBSCRIBE_EVENT is generated. See the constants section for more details. ::
430-
431-
characteristic.config()
432-
433421
.. method:: characteristic.read()
434422

435423
Read the value of the characteristic. For now it always returns a bytes object representing the characteristic value. In the future a specific type (integer, string, bytes) will be returned depending on the characteristic in question. ::
@@ -503,7 +491,7 @@ The following class allows you to manage **Server** characteristics.
503491

504492
Creates a callback that will be executed when any of the triggers occurs. The arguments are:
505493

506-
- ``trigger`` can be either ``Bluetooth.CHAR_READ_EVENT`` or ``Bluetooth.CHAR_WRITE_EVENT`` or ``Bluetooth.CHAR_SUBSCRIBE_EVENT``.
494+
- ``trigger`` can be either ``Bluetooth.CHAR_READ_EVENT`` or ``Bluetooth.CHAR_WRITE_EVENT``.
507495
- ``handler`` is the function that will be executed when the callback is triggered.
508496
- ``arg`` is the argument that gets passed to the callback. If nothing is given, the characteristic object that owns the callback will be used.
509497

docs/license.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2323
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2424
THE SOFTWARE.
2525

26-
Copyright (c) 2016, Pycom Limited.
26+
Copyright (c) 2018, Pycom Limited.
2727

2828
This software is licensed under the GNU GPL version 3 or any
2929
later version, with permitted additional terms. For more information

0 commit comments

Comments
 (0)