Skip to content

Commit 2c9fbb5

Browse files
authored
Merge pull request adafruit#1594 from dhalbert/remove-bleio-wip-classes
Remove bleio classes that aren't done yet.
2 parents e360646 + 8b6dc44 commit 2c9fbb5

5 files changed

Lines changed: 21 additions & 7 deletions

File tree

shared-bindings/bleio/Descriptor.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ enum {
4848
DescriptorUuidTimeTriggerSetting = 0x290E,
4949
};
5050

51+
// Work-in-progress: orphaned for now.
52+
//| :orphan:
53+
//|
5154
//| .. currentmodule:: bleio
5255
//|
5356
//| :class:`Descriptor` -- BLE descriptor

shared-bindings/bleio/Device.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@
4343
#include "shared-module/bleio/Device.h"
4444
#include "shared-module/bleio/ScanEntry.h"
4545

46+
// Work-in-progress: orphaned for now.
47+
//| :orphan:
48+
//|
4649
//| .. currentmodule:: bleio
4750
//|
4851
//| :class:`Device` -- BLE device

shared-bindings/bleio/ScanEntry.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737
#include "shared-module/bleio/AdvertisementData.h"
3838
#include "shared-module/bleio/ScanEntry.h"
3939

40+
// Work-in-progress: orphaned for now.
41+
//| :orphan:
42+
//|
4043
//| .. currentmodule:: bleio
4144
//|
4245
//| :class:`ScanEntry` -- BLE scan response entry

shared-bindings/bleio/Scanner.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232
#define DEFAULT_INTERVAL 100
3333
#define DEFAULT_WINDOW 100
3434

35+
// Work-in-progress: orphaned for now.
36+
//| :orphan:
37+
//|
3538
//| .. currentmodule:: bleio
3639
//|
3740
//| :class:`Scanner` -- scan for nearby BLE devices

shared-bindings/bleio/__init__.c

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,12 @@
6060
//| Broadcaster
6161
//| Characteristic
6262
//| CharacteristicBuffer
63-
//| Descriptor
64-
//| Device
63+
// Work-in-progress classes are omitted, and marked as :orphan: in their files.
64+
// Descriptor
65+
// Device
6566
//| Peripheral
66-
//| ScanEntry
67-
//| Scanner
67+
// ScanEntry
68+
// Scanner
6869
//| Service
6970
//| UUID
7071
//|
@@ -82,10 +83,11 @@ STATIC const mp_rom_map_elem_t bleio_module_globals_table[] = {
8283
{ MP_ROM_QSTR(MP_QSTR_Broadcaster), MP_ROM_PTR(&bleio_broadcaster_type) },
8384
{ MP_ROM_QSTR(MP_QSTR_Characteristic), MP_ROM_PTR(&bleio_characteristic_type) },
8485
{ MP_ROM_QSTR(MP_QSTR_CharacteristicBuffer), MP_ROM_PTR(&bleio_characteristic_buffer_type) },
85-
{ MP_ROM_QSTR(MP_QSTR_Descriptor), MP_ROM_PTR(&bleio_descriptor_type) },
86+
// { MP_ROM_QSTR(MP_QSTR_Descriptor), MP_ROM_PTR(&bleio_descriptor_type) },
8687
{ MP_ROM_QSTR(MP_QSTR_Peripheral), MP_ROM_PTR(&bleio_peripheral_type) },
87-
{ MP_ROM_QSTR(MP_QSTR_ScanEntry), MP_ROM_PTR(&bleio_scanentry_type) },
88-
{ MP_ROM_QSTR(MP_QSTR_Scanner), MP_ROM_PTR(&bleio_scanner_type) },
88+
// Hide work-in-progress.
89+
// { MP_ROM_QSTR(MP_QSTR_ScanEntry), MP_ROM_PTR(&bleio_scanentry_type) },
90+
// { MP_ROM_QSTR(MP_QSTR_Scanner), MP_ROM_PTR(&bleio_scanner_type) },
8991
{ MP_ROM_QSTR(MP_QSTR_Service), MP_ROM_PTR(&bleio_service_type) },
9092
{ MP_ROM_QSTR(MP_QSTR_UUID), MP_ROM_PTR(&bleio_uuid_type) },
9193

0 commit comments

Comments
 (0)