It seems like Macs don't have a consistent version or way of installing
Python3. Use a prebuild binary instead of attempting to use the OS X
Python3 interpreter.
- Call ResponseTransmittedHook after every response transmission attempt, instead of after every successful response transmission attempt.
- Improve documentation.
- Finalize README.md.
- Update keywords.txt.
* New Graph Example
* Now using isFlashInterfacePin() no define default GPIO mask.
* Added info about zooming.
* Adressed requested changes (boolean > bool,
using esp8266::polledTimeout::periodicMs, reducing complexity)
Fixes#7323
While I'm not a fan, the Arduino FileSeek API online shows that a seek()
past EOF should return FALSE.
https://www.arduino.cc/en/Reference/FileSeek
SPIFFS and SDFS obey this, but LittleFS followed the POSIX standard or
allowing seeks past EOF.
Update LittleFS::seek() to follow the Arduino API and add tests for it.
* Remove unnecessary XMC support from eboot
eboot is always run with the flash access speed set to 20MHz, so
there is no need for special treatment of XMC chips.
* After eboot copies the new firmware into place, verify the copy.
If the data written to flash is as expected, the line cmp:0 will be displayed
after the usual @cp:0 from eboot.
* Disable interrupts during the precached part of _SPICommand()
For some reason this was an issue during the reboot after an OTA update.
Manually merged the PATCH files from upstream up until Jan 26, 2020.
Looks to only fix a single bug related to reading past the end of a file
in certain cases. Other new features (secure erase) are included to
make it easier to merge any future releases, but are not enabled in the
core.
Merges included:
20fc6df0ab2bee391961b5f823a327887abc96b4
da1cf494796d68bb5c02ba70cf78a904db08a170
13935985cdde6d6b4ec77f2685264242ee55e7ac
ec68ba8208d7550860e4e78299d58a529b88bf85
f59d958e0b2f169b549e5cdc293a70bc6873cd45
f7d3e9f2b207958dfc2c01cf3fc42f98a4b9b239
554b59c147d96223ccce18374989f191f7222b45
07e013056dd976d12ae36db5c54a275e1497f6c8
d0d44c4908efff7a443ed9b1174d9173fb784a72
3cb24dbfd32a396dca46a7ca56a8e75bdcb97078
8172b40813ff36aa0df4c88a6e9c76e5300d7e32
* Flash size reduction for mime-type
* moving from fixed size strings to standard PROGMEM strings
* adding `#define MIMETYPE_MINIMAL` to reduce the footprint to
mime-types that are strictly necessary
* Added MIMETYPE_MINIMAL conditionals
* Server Sent Events example - issue #7008
Illustrates the use of SSE using ESP8266WebServer
* Update ServerSentEvents.ino
* Create ServerSentEventsMultiClient.ino
* sync
* Update ServerSentEvents.ino
* Update ServerSentEvents.ino
Fix missing variables in printf statments
Fix subscriptioncount not decreasing
Fix SSEBroadcastState (argument sequence wrong)
* Undo the library additions, move to current master
* Fix compiler warning
* Address review and fix multi-sensor updates
Address points of @devyte's code review:
* Use IPAddress vs. uint32_t
* Refactor the URL parsing logic to use strlen vs. sizeof, since there
was some confusion in the original (correct) version
* Minimize copies of WiFiClients while in use
* Use byref access for sensor updates
Fix multi-sensor updates
* Create an update Ticker for each sensor, because the original code
only had one whose callback was overridden by sensorB, meaning sensorA
never changed
* Fix IPv6 build errors
* Remove WiFiClient extraneous copy
Avoid duplicating WiFiClient by using the WiFiClient object embedded in
the subscriber[] array instead.
Co-authored-by: Earle F. Philhower, III <earlephilhower@yahoo.com>
The BearSSL SigningVerifier was moved to the 2nd stack because some uses
required much more stack than available on the normal stack.
Add a reference to the second stack on object creation (which will
allocate it, if there is no BSSL stack already allocated), and delete
that reference on exit.
Fixes#7288
* Because of git problems, start from a new fork and create a new PR. This was PR #6457
* Style update to pass Travis
* Update ReuseConnectionV2.ino
* fix + enforce testing http code
per @earlephilhower review
* Close connection before ::connecting on HTTP/1.0
HTTPClient never actually closes the TCP connection on its own. It will leave the TCP connection open unless you explicitly do a getString which makes a StreamString and stuffs it with the HTTP server response, at which point the HTTP server itself will close the connection.
If you check the HTTP error code and find failure, unless you do a getString and throw it away, it won't disconnect. Even in HTTP/1.0 or in cases when you haven't enabled _reuse.
Change the logic in ::connect to only reuse the connection when it is specifically allowed. Otherwise, fall back to re-connection.
* Adjust example per request
Do single URL get in each loop, avoid infinite for loop at end.
* Fix astyle
* Clean up final pass notice
* Fix example syntax error
Editing code in a web textbox without running it is a painful process.
Co-authored-by: Earle F. Philhower, III <earlephilhower@yahoo.com>
- Generalize and improve JSON processing code.
- Prevent mesh passwords from containing " characters to avoid messing up the JSON processing.
- Improve documentation.
* Deprecate SPIFFS, move examples to LittleFS
SPIFFS has been a great filesystem, but it has significant problems in
many cases (and it's also pretty slow). Development seems to have
slowed/stopped on the upstream version, and we're not able to provide
support or fix the known issues with it as-is.
Deprecate SPIFFS variable.
Update all examples to use LittleFS instead of SPIFFS.
Also, minor cleanup on very old examples which has obsolete delays
waiting for the Serial port to come up, or which were stuck at 9600 baud
because of their ancient AVR heritage.
Fixes#7095
* Remove leftover debug code
* Clean up comments in some examples
* Update documentation on SPIFFS deprecation
* Fix host tests to avoid deprecation warnings
* Fix cut-n-paste error
* Restore SpeedTest.ino, adjust to allow custom FSes
Co-authored-by: Develo <deveyes@gmail.com>
Documentation that bit USTX in UART status register USS(u) / U0S / U1S is not mirroring TX level as expected but always reads 0, see issue #7256
Co-authored-by: Develo <deveyes@gmail.com>
Add minor NULL and double-free checks to source, identified using GCC10
pre-release static `-fanalyzer` on the coude. These are harmless to
other versions.
Also add explicit include of stdint to Schedule.h, because libstdc++20
will not automatically include it. Safe and no-op on earlier versions.
* Refactored to make getContentType public for 3rd party use.
* Added missing "jpeg" extension
* Use getContentType() from mime namespace.
* Also add .jpeg extension
- Remove setMeshInstance method from RequestData class.
- Remove delay(50) and WiFi.disconnect() from setup() in the examples since those statements do not seem to have an effect any longer.
- Improve documentation.
* Minimal file with a few ESP8266-specific keywords - github issue #3701
* Renamed "SDWebServer" to the more universal "WebFileManager"
* SD was replaced by SDFS, and sketch now works on either SDFS, SPIFFS or
LittleFS based on a #define logic (required adding a second param to open() and
replacing 'FILE_WRITE' by "w") + Added size information to file list and a /status request handler to return filesystem status
* Tree panel width is now proportional to window. Changed icons (lighter and
more neutral), including one for files. Show size of files. Fill
"filename" box upon clicking on a file. Sort files alphabetically.
* Replaced by a lighter version
* Return the filesystem time in the status object
+ Massive cleanup/merge/align with some code from the FSBrowser example
and misc refactorings
* Fixed folder handling
* Replaced the FILESYSTEM #define by a filesystem variable, and introduced FSConfig to prevent FS formating.
Fixed recursive deletion.
Got rid of specific isDir() for SPIFFS.
* Made 8.3 lowercase filenames formating optional (disabled by default).
Refresh only part of the tree when possible.
Selecting a file for upload defaults to the same folder as the last
clicked file.
Removed the Mkdir button on SPIFFS.
* Added 'wait' cursor during asynchronous operations.
Slight refactoring of XMLHttpRequest completion handling
* Removed limitation "files must have an extension, folders may not".
Case insensivity of the extension for the editor and preview.
* Support Filenames without extension, Dirnames with extension.
Added Save/Discard/Help buttons to Editor, discard confirmation on leave, and refresh tree/status upon save.
Removed redundant Ctrl-Z + Ctrl-Shift-Z shortcut declarations.
Small bug fixes.
+ some refactoring
* Fixed tree refresh on delete in all cases by returning the remaining path as response to the delete request.
Refactoring
* Changed FS status in text by a percentage graph, with numbers as tooltip.
Unsupported files on SPIFFS (files at root not sarting with "/", files with double "/", files ending with "/") are now detected and reported in the page.
* Small fix + refactoring
* Restrict filename support check to SPIFFS.
* Implemented Move/Rename.
Added "loading" screen during async operations (dim with spinner and status).
Fixed "discard" feature that kept prompting even after an image was loaded.
Improved refresh of parts of the tree, with recursive listing.
Moved the "path" id attribute to the "li" elements for folders (was already the case for files).
Refactoring and cleanup.
* Fixed broken spinner
* Cosmetic improvements.
Removed non-functional Upload context menu.
Fixed error in response to move requests.
Added minified version.
* Added specific icons for text and image files.
Fixed incompatibilities with SPIFFS.
Fixed a race condition between deletion and reinsertion of nodes when multiple folders are refreshed.
Fixed missing URL decoding for files with special chars (e.g. space char).
Moved info from source code comment to a readme.md file.
Added source PNG to git.
Cleanup.
* Added favicon.ico.
* Renamed project
* Small changes
* Add a note about the ace.js dependency
* Minor changes
* Define LittleFS by default.
If both uncompressed and gz versions exist, use uncompressed version.
Small fixes.
* Define LittleFS by default.
If both uncompressed and gz versions exist, use uncompressed version.
Small fixes.
* Restyled version
* (dummy edit to retrigger broken CI)
* Using unsigned int for comparison with String.length()
* Return an error when upload fails (e.g. filesystem full)
* Trying to reorder functions to please CI
* Reordered functions to please CI.
* Moved file
* Renamed "SDWebServer" to the more universal "WebFileManager"
* SD was replaced by SDFS, and sketch now works on either SDFS, SPIFFS or
LittleFS based on a #define logic (required adding a second param to open() and
replacing 'FILE_WRITE' by "w") + Added size information to file list and a /status request handler to return filesystem status
* Tree panel width is now proportional to window. Changed icons (lighter and
more neutral), including one for files. Show size of files. Fill
"filename" box upon clicking on a file. Sort files alphabetically.
* Replaced by a lighter version
* Return the filesystem time in the status object
+ Massive cleanup/merge/align with some code from the FSBrowser example
and misc refactorings
* Fixed folder handling
* Replaced the FILESYSTEM #define by a filesystem variable, and introduced FSConfig to prevent FS formating.
Fixed recursive deletion.
Got rid of specific isDir() for SPIFFS.
* Made 8.3 lowercase filenames formating optional (disabled by default).
Refresh only part of the tree when possible.
Selecting a file for upload defaults to the same folder as the last
clicked file.
Removed the Mkdir button on SPIFFS.
* Added 'wait' cursor during asynchronous operations.
Slight refactoring of XMLHttpRequest completion handling
* Removed limitation "files must have an extension, folders may not".
Case insensivity of the extension for the editor and preview.
* Support Filenames without extension, Dirnames with extension.
Added Save/Discard/Help buttons to Editor, discard confirmation on leave, and refresh tree/status upon save.
Removed redundant Ctrl-Z + Ctrl-Shift-Z shortcut declarations.
Small bug fixes.
+ some refactoring
* Fixed tree refresh on delete in all cases by returning the remaining path as response to the delete request.
Refactoring
* Changed FS status in text by a percentage graph, with numbers as tooltip.
Unsupported files on SPIFFS (files at root not sarting with "/", files with double "/", files ending with "/") are now detected and reported in the page.
* Small fix + refactoring
* Restrict filename support check to SPIFFS.
* Implemented Move/Rename.
Added "loading" screen during async operations (dim with spinner and status).
Fixed "discard" feature that kept prompting even after an image was loaded.
Improved refresh of parts of the tree, with recursive listing.
Moved the "path" id attribute to the "li" elements for folders (was already the case for files).
Refactoring and cleanup.
* Fixed broken spinner
* Cosmetic improvements.
Removed non-functional Upload context menu.
Fixed error in response to move requests.
Added minified version.
* Added specific icons for text and image files.
Fixed incompatibilities with SPIFFS.
Fixed a race condition between deletion and reinsertion of nodes when multiple folders are refreshed.
Fixed missing URL decoding for files with special chars (e.g. space char).
Moved info from source code comment to a readme.md file.
Added source PNG to git.
Cleanup.
* Added favicon.ico.
* Renamed project
* Small changes
* Add a note about the ace.js dependency
* Minor changes
* Define LittleFS by default.
If both uncompressed and gz versions exist, use uncompressed version.
Small fixes.
* Define LittleFS by default.
If both uncompressed and gz versions exist, use uncompressed version.
Small fixes.
* Restyled version
* (dummy edit to retrigger broken CI)
* Using unsigned int for comparison with String.length()
* Return an error when upload fails (e.g. filesystem full)
* Trying to reorder functions to please CI
* Reordered functions to please CI.
* Update to use chunked response API
* Removed temp files commited by mistake
* Avoid using args() as requested
* Use html entity for non-breaking space to avoid losing char when minifying
* Script to preprocess index.htm
* (reformated code)
* (comments)
* Preprocessed files
* Fixed dump to create an actual include file
* Optionally embed index.htm in code.
(+ documentation and preprocessing script)
* (reformated)
* If editor cannot be loaded from the web, try a local version, or default
to a text viewer if not present
* (removed a TODO item :-))
* (forgot to reprocess files after last commit)
* (reprocess should be ok this time)
* Return error 500 when upload fails immediately (e.g. filesystem full)
* Use standard <meter> tag for filesystem use
* (updated following changes to index.htm)
* Do not include gzipped version in the data folder by default. Leave it in the extras folder and change readme accordingly (plus some reformatingi of the readme file)
* Gzipped index file not included in data/edit by default. It is now left in the extras folder.
Readme file was updated accordingly (+ some reformating)
* Reduce String clutter by reserving and concatenating elements one by one.
* Use clear() to reset String.
* Avoid comparisons against empty String.
* Use char instead of single-char String where possible.
* Prefer direct logic over inverted.
* Rename returnBlah to replyBlah.
* Renamed h2int to hexDigitToInt
* Renamed getFileError() to checkForUnsupportedPath(), to avoid confusion
with a getter.
* Misc improvements.
* Added comments about mandatory rebuilding gz and h files in case of update
to index.htm.
* Addressed a few comments.
* Improve replies: bad requests vs server error
* (reformated)
* Reduce clutter by reserving String size beforehand.
* Moved most Strings of more than 10 chars to flash.
* Use lib version of urlDecode() instead of a local one, and only call it when required.
* Added a comment about the dangers of recursion on embedded devices.
* Added a more explicit warning in the .h header comment.
* Added a typical set of required files to load ace editor from the ESP.
* (reformated)
* More explicit warning at the beginning of the .h version.
Co-authored-by: david gauchard <gauchard@laas.fr>
Co-authored-by: Earle F. Philhower, III <earlephilhower@yahoo.com>
Co-authored-by: Develo <deveyes@gmail.com>
- Add using namespace experimental::crypto; to HelloCrypto.ino.
- Add mention about new random function in libraries.rst.
- Update keywords.
Co-authored-by: Anders <andlo151@student.liu.se>
* - Add CryptoInterface library.
- Add TypeConversion core files.
* Fix compiler errors.
- Make HelloCrypto.ino stylish.
- Include assert.h in CryptoInterface.cpp.
* - Move base36 arrays to PROGMEM in TypeConversionFunctions.cpp.
- Add deprecated attribute to SHA1 and MD5 hashes.
- Remove _warningsEnabled since this has been replaced by the deprecated attribute.
- Prefix all getters with "get".
- Move all CryptoInterface functionality to the experimental namespace.
- Change formatting of core files.
- Improve comments.
* - Update keywords.txt.
* - Remove WiFi.disconnect() from setup() in HelloCrypto example since it no longer seems to be required.
* - Classify everything.
- Remove delay in setup() from HelloCrypto example since it does not seem to be required to prevent missing initial Serial prints.
- Mark type conversion functions as big endian.
- Update keywords.txt.
* - Remove namespace experimental.
- Create ESP.random functions in the core based on the defaultNonceGenerator code, and use these in defaultNonceGenerator.
- Rename CryptoInterface to esp8266::Crypto and move all functionality to the core.
- Remove need to #include <bearssl/bearssl.h> in the Crypto header file by changing br_hkdf_context to ::br_hkdf_context.
- Restyle code files for core usage.
* - Re-add namespace experimental.
- Improve comments.
* - Remove namespace esp8266.
- Rename namespace Crypto to namespace crypto.
Co-authored-by: Anders <andlo151@student.liu.se>
Co-authored-by: Develo <deveyes@gmail.com>