Skip to content

Bug Fix for BLE and Wi-Fi

Compare
Choose a tag to compare
@pablosun pablosun released this 26 Feb 03:49
· 6 commits to master since this release

Wi-Fi fixes

  • #92 WiFi library cannot connect to Wi-Fi AP with WPA + TKIP configuration. Fixed by using mixed authentication mode.

BLE fixes

  • #89 Unreliable lookup method used within LBLEEventDispatcher class : use equal_range when searching for elements in STL multimap, instead of using find. find is not guaranteed to return the first element in the equal range.

  • #90 Improper characteristic list implementation of LBLEClient class:

    • Add a new set of interfaces to LBLEClient that allows user to identify a characteristic by using service index and characteristic index, instead of using UUID. Note that it is possible for a device to have multiple characteristics with the same UUID.
    • Add a new example EnumerateCharacteristic.ino that uses the new indices-based interface of LBLEClient to list all the services and characteristics in the connected BLE device.
    • Use bt_gattc_read_charc instead of bt_gattc_read_using_charc_uuid to read characteristics.
    • Refactored LBLEValueBuffer to support re-interpreting its raw buffer content into String, float, int, and char types.
  • #91: when calling bt_gattc_discover_charc, we need to wait for multiple BT_GATTC_DISCOVER_CHARC event. We added new helper function waitAndProcessEventMultiple that supports such event waiting behavior.