def add_characteristic(self, characteristic):
"""Add a characteristic.
Adds a characteristic to the list of characteristics offered by the
service.
:param characteristic: the characteristic to be added.
(type: peripheral.Characteristic)
"""
self.characteristics.append(characteristic)
评论列表
文章目录