File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 30
30
ManufacturerData ,
31
31
ManufacturerDataField ,
32
32
)
33
+ from adafruit_ble .advertising .adafruit import (
34
+ MANUFACTURING_DATA_ADT ,
35
+ ADAFRUIT_COMPANY_ID ,
36
+ )
33
37
from micropython import const
34
38
35
39
__version__ = "0.0.0-auto.0"
36
40
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_BLE_Creation.git"
37
41
38
- _MANUFACTURING_DATA_ADT = const (0xFF )
39
- _ADAFRUIT_COMPANY_ID = const (0x0822 )
40
42
# Color packets are 1 (and radio), broadcastnet is 3.
41
43
_DEVICE_FRIEND_DATA_ID = const (0x0004 )
42
44
@@ -49,17 +51,17 @@ class Creation(Advertisement):
49
51
match_prefixes = (
50
52
struct .pack (
51
53
"<BHBH" ,
52
- _MANUFACTURING_DATA_ADT ,
53
- _ADAFRUIT_COMPANY_ID ,
54
+ MANUFACTURING_DATA_ADT ,
55
+ ADAFRUIT_COMPANY_ID ,
54
56
struct .calcsize ("<HII" ),
55
57
_DEVICE_FRIEND_DATA_ID ,
56
58
),
57
59
)
58
60
manufacturer_data = LazyObjectField (
59
61
ManufacturerData ,
60
62
"manufacturer_data" ,
61
- advertising_data_type = _MANUFACTURING_DATA_ADT ,
62
- company_id = _ADAFRUIT_COMPANY_ID ,
63
+ advertising_data_type = MANUFACTURING_DATA_ADT ,
64
+ company_id = ADAFRUIT_COMPANY_ID ,
63
65
key_encoding = "<H" ,
64
66
)
65
67
creation_id = ManufacturerDataField (
Original file line number Diff line number Diff line change 26
26
# digitalio, micropython and busio. List the modules you use. Without it, the
27
27
# autodoc module docs will fail to generate with a warning.
28
28
autodoc_mock_imports = [
29
- "adafruit_ble " ,
29
+ "bleak " ,
30
30
]
31
31
32
32
You can’t perform that action at this time.
0 commit comments