forked from espressif/arduino-esp32
-
Notifications
You must be signed in to change notification settings - Fork 0
Update from upstream master #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you a 8000 gree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Compiler complains on unused parameter pCharacteristicMap: framework-arduinoespressif32\libraries\BLE\src\BLERemoteService.cpp: In member function 'void BLERemoteService::getCharacteristics(std::map<short unsigned int, BLERemoteCharacteristic*>*)': \framework-arduinoespressif32\libraries\BLE\src\BLERemoteService.cpp:246:89: warning: parameter 'pCharacteristicMap' set but not used [-Wunused-but-set-parameter] void BLERemoteService::getCharacteristics(std::map<uint16_t, BLERemoteCharacteristic*>* pCharacteristicMap) {
added availableForWrite to Print.h to make compatible with Arduino Print.h
… without updating descriptor. (#4659)
Added authentication callbacks and example, resolves #4622.
esp-face: master 420fc7e esp32-camera: master 0107093
Co-authored-by: me-no-dev <me-no-dev@github.com>
Co-authored-by: me-no-dev <me-no-dev@github.com>
…ing to new one Fixes: #4763
* Update IDF to d8082b7f3
* 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
The variable is useful when debugging AsyncUDP send problems. The upper application can read and analyze the error reason.
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
- 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 #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
The temp buffer serves no purpose here. Also mbedtls_strerror can be called with size == 0 safely.
mbedTLS requires repeated calls to mbedtls_ssl_write() whenever it returns MBEDTLS_ERR_SSL_WANT_READ or MBEDTLS_ERR_SSL_WANT_WRITE. this happens when the client sends data faster then the server or the connection can handle.
Allows BLEAddress to be used as key in std::map etc
With this PR user can select to use the original ESP-IDF log instead of the redefined one. User can also redefine the log function as per [Logging Library](https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/log.html#_CPPv419esp_log_set_vprintf14vprintf_like_t) so he can for example redirect logs to a file. To enable this change just add -DUSE_ESP32_LOG to build flags. User can also change the default TAG (that now is ES32) to whatever it wants adding '-DTAG="tag_value"' to build flags
esp-face: master 420fc7e esp32-camera: master a5ccbec
Co-authored-by: ketri-kjy <jinyoung@ketri.re.kr> Co-authored-by: ketri2484 <ketri2484@gamil.com>
* Add div by zero check back into WMath::map * include esp32-hal-log.h Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com>
- File might not eval to false if opened with write/append and SD is gone - Allow card to be formatted if FAT partition was not found - Mark card as gone in certain situations - Fix several logic errors in low level SD API
Fixed use of CONFIG_BLUEDROID_ENABLED instead of CONFIG_BT_ENABLED in HAL. This prevented compilation with Nimble-only configuration without apparent benefit.
… lolin32-lite.build.board (#4885)
* Update pins_arduino.h Fix the bug that the IDE show: "Error compiling for the board FireBettle-ESP32" Detial"error : redefinition of const uint8_t D0~D9" * Update pins_arduino.h Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com>
Since `String::setLen()` is now modifying the buffer, this change is required to ensure that the proper buffer is changed.
Fixes: #4884 * Use HTTP method table from ESP-IDF's nghttp * Parse methods using IDF's HTTP method list * Make example's loops to allow the CPU to switch tasks
Labels names updated. Not sure if the spaces in label's names are going to work.
This PR adds PSRAM-specific libraries to the final linker command depending on the `BOARD_HAS_PSRAM` macro. cc @me-no-dev
Co-authored-by: ketri-kjy <jinyoung@ketri.re.kr> Co-authored-by: ketri2484 <ketri2484@gamil.com> Co-authored-by: me-no-dev <hristo@espressif.com>
esp-face: master 420fc7e esp32-camera: master 770f26a
Fixes: #4922
Fixes: #4920
This reverts commit 4b3f5c8.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.