1. 16 Feb, 2021 4 commits
    • Emanuel Posescu's avatar
      Improve cleanup in BLEClient (#4742) · 9be784f6
      Emanuel Posescu authored
      - Remove client from the list of devices in case registration fails
      - Filter other events not related to registration during registration phase
      - Cleanup if connect fails
      - Reset if after disconnect
      - Disconnect callback *after* cleanup is done so object can be deleted
      
      This fixes some of the issues I had like:
      - `BLEClient::connect` hangs up and never recovered because registration failed
      - `BLEClient` could not be deleted after disconnect or deletion creating ghost events https://github.com/espressif/arduino-esp32/issues/4047
      - `BLEClient` could not be properly reused after a connection was attempted (successful or not) 
      
      * Cleanup in case of registration and connect failure.
      Cleanup before calling disconnect callback for safe delete.
      Reject other events during registration.
      Adresses #4047, #4055
      
      * Clear if after unregister #4047
      9be784f6
    • Markus Frey's avatar
      Refactor BLEAdvertisedDevice (#4739) · 7cdfb8bc
      Markus Frey authored
      fixes #4596
      
      * Prevent possible undefined behaviour by get methods not taking an index as parameter
      * Add methods to get the count of service data UUIDs and service UUIDs
      * Various code improvements
      7cdfb8bc
    • me-no-dev's avatar
      8134a421
    • Andre Lorbach's avatar
      AsyncUDP: Added lastErr helper variable (#4789) · f13ff656
      Andre Lorbach authored
      The variable is useful when debugging AsyncUDP send problems.
      The upper application can read and analyze the error reason.
      f13ff656
  2. 15 Feb, 2021 4 commits
    • ushiboy's avatar
      Fixed a memory leak in BLE (issue #4753) (#4761) · e831680a
      ushiboy authored
      * Fixed crash on delete after disconnect
      
      * Fixed memory leak when getting characteristics
      
      * Removed guard
      Co-authored-by: default avatarushiboy <ushiboy.dev@gmail.com>
      e831680a
    • Szymon Zmilczak's avatar
      Added more inclusive CORS policy (#4767) · d9648738
      Szymon Zmilczak authored
      d9648738
    • Mitch Bradley's avatar
      Speed up upload by a factor of 17 (#4787) · 7e8993fc
      Mitch Bradley authored
      * Speed up upload by a factor of 17
      
      Uploads are very slow because of an unnecessary "client.connected()" check in _uploadReadByte().
      
      Here is what happens:
      client.connected() is called for every byte read.  WiFiClient::connected() calls recv(fd(), &dummy, 0, MSG_DONTWAIT); which takes a relatively long time, so the optimized path of returning a buffered byte via client.read() is effectively nullified.
      
      Removing the one line changed the upload speed for a 2 MB file (discarding the received data) from 22 KB/sec (before) to 367 KB/sec (after).
      
      The change is safe in the face of disconnects because client.read(), when it no longer has buffered data, calls (WiFiClient)  fillBuffer(), which calls recv(), so the disconnection will be detected in due course.
      
      * Move disconnect check into the timeout loop
      7e8993fc
    • Me No Dev's avatar
      Idf release/v3.3 d8082b7f3 · 15bae92a
      Me No Dev authored
      * Update IDF to d8082b7f3
      15bae92a
  3. 04 Feb, 2021 1 commit
  4. 03 Feb, 2021 2 commits
  5. 27 Jan, 2021 1 commit
  6. 21 Jan, 2021 4 commits
  7. 15 Jan, 2021 1 commit
  8. 14 Jan, 2021 1 commit
  9. 12 Jan, 2021 3 commits
  10. 11 Jan, 2021 8 commits
  11. 20 Dec, 2020 1 commit
  12. 07 Dec, 2020 2 commits
  13. 02 Dec, 2020 3 commits
  14. 01 Dec, 2020 4 commits
  15. 23 Nov, 2020 1 commit