bluekitchen / btstack

Dual-mode Bluetooth stack, with small memory footprint.
http://bluekitchen-gmbh.com
Other
1.74k stars 618 forks source link

Wrong address_type and address in some examples #579

Closed xiaobye-ctf closed 8 months ago

xiaobye-ctf commented 8 months ago

https://github.com/bluekitchen/btstack/blob/de13ba803acdb54c41ebfbca4e795757f719a2dd/example/gatt_battery_query.c#L198C1-L212C19 https://github.com/bluekitchen/btstack/blob/de13ba803acdb54c41ebfbca4e795757f719a2dd/example/gatt_device_information_query.c#L196C1-L210C19 In these examples, report.address_type and report.address has not been assigned a value, which could lead to unknown behavior in gap_connect.

mringwal commented 8 months ago

fixed in 041b66c. Thanks!