File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
adafruit_ble/services/standard Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 1414import binascii
1515import os
1616import sys
17+ from collections .abc import Iterable
1718
1819from .. import Service
1920from ...uuid import StandardUUID
21+ from ...characteristics import StructCharacteristic
2022from ...characteristics .string import FixedStringCharacteristic
2123
2224try :
@@ -42,6 +44,7 @@ class DeviceInfoService(Service):
4244 hardware_revision = FixedStringCharacteristic (uuid = StandardUUID (0x2A27 ))
4345 software_revision = FixedStringCharacteristic (uuid = StandardUUID (0x2A28 ))
4446 manufacturer = FixedStringCharacteristic (uuid = StandardUUID (0x2A29 ))
47+ pnp_id = StructCharacteristic ("<BHHH" , uuid = StandardUUID (0x2A50 ))
4548
4649 def __init__ (
4750 self ,
@@ -52,6 +55,7 @@ def __init__(
5255 serial_number : Optional [str ] = None ,
5356 firmware_revision : Optional [str ] = None ,
5457 hardware_revision : Optional [str ] = None ,
58+ pnp_id : Optional [Iterable ] = None ,
5559 service : Optional [_bleio .Service ] = None ,
5660 ) -> None :
5761 if not service :
@@ -75,5 +79,6 @@ def __init__(
7579 serial_number = serial_number ,
7680 firmware_revision = firmware_revision ,
7781 hardware_revision = hardware_revision ,
82+ pnp_id = pnp_id ,
7883 service = service ,
7984 )
You can’t perform that action at this time.
0 commit comments