--- a/CircuitPython/bleio.py Wed Aug 28 19:53:19 2019 +0200 +++ b/CircuitPython/bleio.py Thu Aug 29 19:05:05 2019 +0200 @@ -14,30 +14,17 @@ RANDOM_STATIC = 0 RANDOM_PRIVATE_RESOLVABLE = 0 RANDOM_PRIVATE_NON_RESOLVABLE = 0 + + address_bytes = 0 + type = 0 def __init__(self, address, address_type): pass - - @property - def address_bytes(self): - pass - - @property - def type(self): - pass class Adapter(): - @property - def enabled(self): - pass - - @property - def address(self): - pass - - @property - def default_name(self): - pass + enabled = 0 + address = 0 + default_name = "" class Attribute(): NO_ACCESS = 0 @@ -49,6 +36,8 @@ SIGNED_WITH_MITM = 0 class Central(): + connected = 0 + def __init__(self): pass @@ -60,10 +49,6 @@ def discover_remote_services(self, service_uuids_whitelist=None): pass - - @property - def connected(self): - pass class Characteristic(): BROADCAST = 0 @@ -72,28 +57,17 @@ READ = 0 WRITE = 0 WRITE_NO_RESPONSE = 0 + + properties = 0 + uuid = 0 + value = 0 + descriptors = 0 def __init__(self, uuid, *, properties=0, read_perm=Attribute.OPEN, write_perm=Attribute.OPEN, max_length=20, fixed_length=False, descriptors=None): pass - @property - def properties(self): - pass - - @property - def uuid(self): - pass - - @property - def value(self): - pass - - @property - def descriptors(self): - pass - def service(self, read_only): pass @@ -101,6 +75,8 @@ pass class CharacteristicBuffer(): + in_waiting = 0 + def __init__(self, characteristic, *, timeout=1, buffer_size=64): pass @@ -113,10 +89,6 @@ def readline(self): pass - @property - def in_waiting(self): - pass - def reset_input_buffer(self): pass @@ -124,36 +96,26 @@ pass class Descriptor(): + uuid = 0 + value = 0 + def __init__(self, uuid, *, read_perm=Attribute.OPEN, write_perm=Attribute.OPEN): pass def characteristic(self, read_only): pass - - @property - def uuid(self): - pass - - @property - def value(self): - pass class Peripheral(): + services = 0 + name = "" + def __init__(self, services=(), *, name=None): pass def connected(self, read_only): pass - @property - def services(self): - pass - - @property - def name(self): - pass - def start_advertising(self, data, *, scan_response=None, connectable=True, interval=1): pass @@ -171,17 +133,9 @@ pass class ScanEntry(): - @property - def address(self): - pass - - @property - def advertisement_bytes(self): - pass - - @property - def rssi(self): - pass + address = 0 + advertisement_bytes = 0 + rssi = 0 class Scanner(): def __init__(self): @@ -191,33 +145,17 @@ pass class Service(): - def __init__(self, uuid, characteristics, *, secondary=False): - pass - - @property - def remotes(self): - pass + remotes = 0 + secondary = 0 + uuids = 0 - @property - def secondarys(self): - pass - - @property - def uuids(self): + def __init__(self, uuid, characteristics, *, secondary=False): pass class UUID(): + uuid16 = 0 + uuid128 = 0 + size = 0 + def __init__(self, value): pass - - @property - def uuid16(self): - pass - - @property - def uuid128(self): - pass - - @property - def size(self): - pass