Start work on types
Bring in typings folder for adafruit_ble and micropython
This commit is contained in:
55
typings/adafruit_ble/attributes/__init__.pyi
Normal file
55
typings/adafruit_ble/attributes/__init__.pyi
Normal file
@@ -0,0 +1,55 @@
|
||||
"""
|
||||
This type stub file was generated by pyright.
|
||||
"""
|
||||
|
||||
import _bleio
|
||||
|
||||
"""
|
||||
:py:mod:`~adafruit_ble.attributes`
|
||||
====================================================
|
||||
|
||||
This module provides definitions common to all kinds of BLE attributes,
|
||||
specifically characteristics and descriptors.
|
||||
|
||||
"""
|
||||
__version__ = ...
|
||||
__repo__ = ...
|
||||
class Attribute:
|
||||
"""Constants describing security levels.
|
||||
|
||||
.. data:: NO_ACCESS
|
||||
|
||||
security mode: access not allowed
|
||||
|
||||
.. data:: OPEN
|
||||
|
||||
security_mode: no security (link is not encrypted)
|
||||
|
||||
.. data:: ENCRYPT_NO_MITM
|
||||
|
||||
security_mode: unauthenticated encryption, without man-in-the-middle protection
|
||||
|
||||
.. data:: ENCRYPT_WITH_MITM
|
||||
|
||||
security_mode: authenticated encryption, with man-in-the-middle protection
|
||||
|
||||
.. data:: LESC_ENCRYPT_WITH_MITM
|
||||
|
||||
security_mode: LESC encryption, with man-in-the-middle protection
|
||||
|
||||
.. data:: SIGNED_NO_MITM
|
||||
|
||||
security_mode: unauthenticated data signing, without man-in-the-middle protection
|
||||
|
||||
.. data:: SIGNED_WITH_MITM
|
||||
|
||||
security_mode: authenticated data signing, without man-in-the-middle protection"""
|
||||
NO_ACCESS = ...
|
||||
OPEN = ...
|
||||
ENCRYPT_NO_MITM = ...
|
||||
ENCRYPT_WITH_MITM = ...
|
||||
LESC_ENCRYPT_WITH_MITM = ...
|
||||
SIGNED_NO_MITM = ...
|
||||
SIGNED_WITH_MITM = ...
|
||||
|
||||
|
Reference in New Issue
Block a user