1. 16 2月, 2021 2 次提交
    • M
      Speed up upload by a factor of 17 (#4787) · 7e8993fc
      Mitch Bradley 提交于
      * 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
    • M
      Idf release/v3.3 d8082b7f3 · 15bae92a
      Me No Dev 提交于
      * Update IDF to d8082b7f3
      15bae92a
  2. 04 2月, 2021 1 次提交
  3. 03 2月, 2021 2 次提交
  4. 21 1月, 2021 1 次提交
  5. 16 1月, 2021 1 次提交
  6. 11 1月, 2021 4 次提交
  7. 21 12月, 2020 1 次提交
  8. 01 12月, 2020 2 次提交
  9. 23 11月, 2020 2 次提交
  10. 19 11月, 2020 1 次提交
  11. 15 11月, 2020 2 次提交
  12. 11 11月, 2020 1 次提交
  13. 10 11月, 2020 1 次提交
  14. 07 11月, 2020 1 次提交
  15. 06 11月, 2020 1 次提交
    • A
      Allow faster reuse of socket, to be able to restart WifiServer. (#4306) · c6a8da61
      ahorn42 提交于
      See #3960 for more details of the problem and the solution. I only implemented what was proposed in this ticket, as it solves my problem, which was the same as in this ticket. Credits for the code going to @etrinh ;-)
      
      This also is a more consistence behaviour compared to esp8266, where it also is possible to restart the wifiserver immediately on the same port.
      c6a8da61
  16. 04 11月, 2020 3 次提交
  17. 03 11月, 2020 14 次提交
    • L
      Added isKey method to Preferences (#4441) · e2452c0d
      lbernstone 提交于
      Checks to see if a string is a key in the namespace. 
      
      Fixes #4440
      e2452c0d
    • M
      Trailing spaces (#3738) · 56a7ae87
      Mark D 提交于
      * fix typo in WiFiMulti
      
      * clean up trailing spaces
      
      * clean up script file used in cleaning
      Co-authored-by: NMe No Dev <me-no-dev@users.noreply.github.com>
      56a7ae87
    • D
      Handle stream timeouts properly, for slow HTTP/HTTPS links (#3752) · e4b008e7
      Denys Fedoryshchenko 提交于
      This patch fixes update timeouts (error #6) on slow HTTP/HTTPS links.
      e4b008e7
    • S
      improve & fix BLEScan when wantDuplicates (#3995) · dccb4e86
      saknarak 提交于
      * improve & fix BLEScan when too many BLE devices
      - when wantDuplicates, no need to check duplicate and no more insert into vector
      - delete advertisedDevice when not insert into vector, fix memory leak
      - add showParse when you just want raw advertised data
      dccb4e86
    • I
      Add sdkconfig option CONFIG_ARDUINO_UDP_TASK_PRIORITY, which sets the task... · 0e341a61
      Ivorius 提交于
      Add sdkconfig option CONFIG_ARDUINO_UDP_TASK_PRIORITY, which sets the task priority for the UDP vtask." (#4131)
      
      0e341a61
    • 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
    • B
      Fix parameter to BLEDevice::updatePeerDevice (#4133) · 9f7ff009
      buxtronix 提交于
      ::addPeerDevice and ::removePeerDevice are called with m_appId, so should ::updatePeerDevice as all use the same parameter for the underlying map's key.
      9f7ff009
    • M
      Fix header parsing · 704b71da
      Me No Dev 提交于
      fixes #4454
      
      closes #4455
      704b71da
    • E
      Fix for issue #4158: BLEAdvertising - Crash with stack trace originating in Bluedroid (#4182) · 7c057217
      Ernst Sikora 提交于
      * Fix for issue #4158: Crash with stack trace originating in Bluedroid
      Improved configuration of scan response data in 'BLEAdvertising' avoids the crash:
      - Added member variable 'm_scanRespData' to configure scan response differently from advertising data
      - Initialization of 'm_scanRespData' in BLEAdvertising constructor
      - Use of 'm_scanRespData' within BLEAdvertising::start() to configure the scan response
      - 'Flags' and 'Appearance' are cleared in the scan response data
      - With this fix, device names of up to 29 characters can be used without causing a crash.
      7c057217
    • N
      Add sendContent overload that takes a const char* and a length (#4276) · f57c3678
      Niklas Mollenhauer 提交于
      The web server currently lacks the ability to send a buffer. Only strings are supported.
      
      This PR adds an overload to sendContent.
      f57c3678
    • H
      HTTPUpdateServer library (#4244) · 3054bdf5
      Hristo Kapanakov 提交于
      3054bdf5
    • I
      Fix for espressif#3460 issue (#4424) · d6b91872
      Ivan Golubic 提交于
      Fixes: #3460
      
      This code has been run in production for 1 month and it looks stable, no data dropped and it definitely fixes the issue described. I think that this can be merged to avoid using custom package referencing in PlatformIO that has been used in quite a few projects for now.
      Co-authored-by: NIvan Golubic <ivan@mvt-solutions.com>
      d6b91872
    • T
      Add partition label argument to Update and ArduinoOTA classThe UpdateClass in... · cadbad88
      thewavelength 提交于
      Add partition label argument to Update and ArduinoOTA classThe UpdateClass in the Updater component has the ability to update data toa SPIFFS partition. It selects the first available partition using theESP-IDF esp_partition_find_first() function.That behaviour is problematic if one has multiple SPIFFS partitions.This change allows a user to pass the label argument (defaults to NULL)to UpdateClass::begin() so a specific SPIFFS partition can be updated.Additionally, ArduinoOTA can set this partition label using thenew method ArduinoOTAClass::setPartitionLabel which is optional.This change does not break compatibility. (#4442)
      
      The UpdateClass in the Updater component has the ability to update data to
      a SPIFFS partition. It selects the first available partition using the
      ESP-IDF esp_partition_find_first() function.
      That behaviour is problematic if one has multiple SPIFFS partitions.
      
      This change allows a user to pass the label argument (defaults to NULL)
      to UpdateClass::begin() so a specific SPIFFS partition can be updated.
      
      Additionally, ArduinoOTA can set this partition label using the
      new method ArduinoOTAClass::setPartitionLabel which is optional.
      
      This change does not break compatibility.
      cadbad88
    • T
      Add partition label argument to SPIFFS (#4443) · 3cbfa2ff
      thewavelength 提交于
      * Add partition label argument to SPIFFSSPIFFS currently assumes there is only ever one partition.This change allows a user to pass the label argument (defaults to NULL)to SPIFFS::begin() so a specific SPIFFS partition can be referenced.This change does not break compatibility.
      3cbfa2ff