Bug Fix for BLE and Wi-Fi
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 usingfind
.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 ofLBLEClient
to list all the services and characteristics in the connected BLE device. - Use
bt_gattc_read_charc
instead ofbt_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.
- Add a new set of interfaces to
-
#91: when calling
bt_gattc_discover_charc
, we need to wait for multipleBT_GATTC_DISCOVER_CHARC
event. We added new helper functionwaitAndProcessEventMultiple
that supports such event waiting behavior.