Showing 1 changed files with 0 additions and 9 deletions
-9
ble-ad
... ...
@@ -142,17 +142,8 @@ class TestAdvertisement(Advertisement):
142 142
 
143 143
     def __init__(self, bus, index, service_uuid, payload):
144 144
         Advertisement.__init__(self, bus, index, 'peripheral')
145
-        #self.add_service_uuid('180D')
146
-        #self.add_service_uuid('180F')
147
-        #self.add_manufacturer_data(0xffff, [0x00, 0x01, 0x02, 0x03, 0x04])
148
-        #self.add_service_data('9999', [0x00, 0x01, 0x02, 0x03, 0x04])
149
-        #self.add_local_name('TestAdvertisement')
150
-        #self.include_tx_power = True
151
-        #self.add_data(0x26, [0x01, 0x01, 0x00])
152 145
         self.add_service_uuid(service_uuid)
153
-        self.add_service_data(service_uuid, [ 0x00, 0xE8, 0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99, 0x54, 0x43, 0x4C, 0x04, 0x00, 0x0b ])
154 146
         self.add_service_data(service_uuid, payload)
155
-        self.add_local_name('RPI0W')
156 147
 
157 148
 
158 149
 def register_ad_cb():