• B
    Fix BLE connection handling (#4137) · 76cd2e23
    buxtronix 提交于
    Remove device from Peer list if connection fails.
    
    Only call onConnect callback if connection was successful.
    
    Only call onDisconnect callback if the connection was previously connected (ESP_GATTC_DISCONNECT_EVT is fired on a unsuccessful connection attempt also).
    
    Resolves a number of issues with phantom events and callbacks being fired.
    76cd2e23
BLEClient.cpp 16.0 KB