colin-guyon / py-bluetooth-utils

Python module containing bluetooth utility functions, in particular for easy BLE scanning and advertising
MIT License
73 stars 20 forks source link

invalid packet size #10

Open Matthias199 opened 1 year ago

Matthias199 commented 1 year ago

Hey guys,

tried to change the arry from the example of my needs in start_le_advertising

start_le_advertising(sock,
                     min_interval=200, max_interval=200,
                     data=(0x0,0x22) + (0,) * 29)

Is working fine but

start_le_advertising(sock,
                     min_interval=200, max_interval=200,
                     data=(0x0,0x22) + (0,) * 28)

btmon shows the following

< HCI Command: LE Set Advertising Data (0x08|0x0008) plen 31 #15 [hci1] 62.550191 invalid packet size 1e 00 22 00 00 00 00 00 00 00 00 00 00 00 00 00 .."............. 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ...............

just reduced the size, waht is wrong ?