1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-22 21:23:07 +03:00

1952 Commits

Author SHA1 Message Date
Marvin Roger
e23e4d90da Add font MIME types, fix #1601
As per http://stackoverflow.com/a/10864297
2016-03-05 14:38:02 +01:00
Ivan Grokhotkov
b265ea0a98 Update README.md 2016-03-03 19:04:31 +03:00
Ivan Grokhotkov
071ecee5aa Merge pull request #1716 from esp8266/host_tests
Initial batch of host testing mocks and some filesystem tests

- CATCH unit testing framework
- some mocks
- filesystem tests
- test coverage calculation (gcov)
- codecov.io integration
- add tools/build.py — a wrapper around arduino-builder
- use arduino-builder instead of full IDE to build sketches (reduces build time from 23 minutes to 16 minutes)
2016-03-03 18:14:57 +03:00
Ivan Grokhotkov
ec99268824 Travis: print verbose build log only if build errors 2016-03-03 17:52:46 +03:00
Ivan Grokhotkov
53ba831c90 Skip files which aren't main sketch files 2016-03-03 17:42:27 +03:00
Ivan Grokhotkov
fa3effa5fc Don't import serial in build.py 2016-03-03 17:26:14 +03:00
Ivan Grokhotkov
031a18c836 Build sketches with arduino-builder 2016-03-03 17:21:58 +03:00
Ivan Grokhotkov
678a8ff8f1 Request gcov-4.8 on Travis 2016-03-03 15:49:32 +03:00
Ivan Grokhotkov
de2c81594d Attempt to fix gcov and codecov integration 2016-03-03 15:37:50 +03:00
Ivan Grokhotkov
9cf3d7a360 Don't override CC and CXX unless running on OS X 2016-03-03 14:01:18 +03:00
Ivan Grokhotkov
59e3aff678 Add coverage 2016-03-03 13:57:28 +03:00
Ivan Grokhotkov
6d9255ab55 Some cleanup on file system test, add reset test 2016-03-03 13:01:08 +03:00
Ivan Grokhotkov
266962f9fe Fix license headers in new files 2016-03-03 12:59:50 +03:00
Ivan Grokhotkov
1f97e000d0 Request gcc 4.8 on Travis 2016-03-03 11:02:35 +03:00
Ivan Grokhotkov
93fee9df3f Add Makefile and run tests on Travis 2016-03-03 10:59:21 +03:00
Ivan Grokhotkov
624665911d A few tests for filesystem APIs 2016-03-03 09:38:26 +03:00
Ivan Grokhotkov
5724f38542 Initial batch of mocks for host side testing 2016-03-03 09:37:35 +03:00
Ivan Grokhotkov
1c9f9c3a6d Merge pull request #1713 from esp8266/core_cleanup
Clean up core files
2016-03-03 09:21:28 +03:00
Ivan Grokhotkov
1f32b7f66e Clean up core files
- remove ICACHE_FLASH_ATTR
- remove unneeded SDK includes
- split spiffs_api into .h and .cpp
2016-03-03 02:13:22 +03:00
Ivan Grokhotkov
aa67d1c492 Pass errors from udp_sendto to WiFiUDP::endPacket (#1696) 2016-03-02 19:58:35 +03:00
Ivan Grokhotkov
33e5ca44df WiFiClient: fix write behaviour when connection is closed by remote side
Don't wait for data to be ACKed if we have just called abort().
2016-03-02 17:53:42 +03:00
Ivan Grokhotkov
2c40d82459 WiFiClientSecure: implement connection timeout, fix connected method behaviour 2016-03-02 16:30:32 +03:00
Ivan Grokhotkov
efa35e257a Update axTLS to 5b4be7d
Changes:
5b4be7d2738de5874f2e302157a0b726fe7bd4a6 Reserve 16k fragment buffer only when it is actually required.
b33ef68e6a3e2be1171e5a9f5b6156af424489ec Fix handshake status not being set if increase_bm_data_size fails
2016-03-02 15:47:12 +03:00
Ivan Grokhotkov
416f0a61e2 Merge pull request #1688 from nuket/master
Add TestEspApi example, exercising the non-RTOS C API.
2016-03-01 12:22:28 +03:00
Ivan Grokhotkov
7aa061c6ea Merge pull request #1693 from raheelh/patch-2
Leverage realloc() in String::changeBuffer()
2016-03-01 12:22:16 +03:00
Ivan Grokhotkov
2d34c1b7d6 Update README.md 2016-03-01 12:16:49 +03:00
Max Vilimpoc
8324a1d186 Merge branch 'master' into master 2016-03-01 00:21:43 +01:00
Raheel Hameed
2d77eae599 Leverage realloc() in String::changeBuffer() 2016-02-28 02:50:48 -06:00
Ivan Grokhotkov
5ab63dcf7a Update esptool to 0.4.8 2.1.0 2016-02-28 00:48:13 +03:00
Max Vilimpoc
7c8d9b2d8d Add TestEspApi example, exercising the non-RTOS C API. 2016-02-27 12:59:08 +01:00
Ivan Grokhotkov
269d7ca181 Update changelog 2016-02-27 11:41:50 +03:00
Ivan Grokhotkov
040491052e Update stable package link 2016-02-27 11:33:06 +03:00
Ivan Grokhotkov
89e182a415 Update changelog 2016-02-27 11:24:07 +03:00
Ivan Grokhotkov
214d8bc8b8 Improve clearing GPIO interrupt state (thanks @me-no-dev) 2016-02-27 11:16:30 +03:00
Ivan Grokhotkov
6372a0dd05 Mention 512k/128k option in docs 2016-02-27 01:55:46 +03:00
Ivan Grokhotkov
3d3cd42ba5 Make 512k/64k board option the default one 2016-02-27 01:55:23 +03:00
Ivan Grokhotkov
28ae6fc917 Merge pull request #1684 from hallard/master
Added 128K SPIFFS for 512KB modules
2016-02-27 01:52:02 +03:00
Ivan Grokhotkov
1cd644582a Merge pull request #1633 from joostd/master
Enable WPA2-Enterprise
2016-02-27 01:51:24 +03:00
Ivan Grokhotkov
87a7f8e954 Merge pull request #1668 from raheelh/patch-1
Fix a crash in String::changeBuffer()
2016-02-27 01:51:05 +03:00
Ivan Grokhotkov
99d351d661 Update esptool to 0.4.7 2016-02-27 01:47:14 +03:00
Charles
d89abd696f Added 128K SPIFFS for 512KB modules 2016-02-26 16:52:52 +01:00
Ivan Grokhotkov
fbe58b7b14 WiFiClientSecure: don't panic if memory allocation fails
If it fails due to a malloc somewhere in bigint.c, we will still crash (although with a less obvious crash message). If it fails in increase_bm_data_size, axTLS will handle this and report that connection has been aborted. This error will be passed on to the user, so that an application can recover and attempt to reconnect.
2016-02-26 18:41:27 +03:00
Ivan Grokhotkov
fcf9c0d7ce Verify domain name in WiFiClientSecure::verify 2016-02-26 18:41:27 +03:00
Ivan Grokhotkov
e206093b60 Update libaxtls.a to 324c2fd
Changelog:
324c2fdade3f39b4c7fb7fbe707f4a313023ecd3 Terminate connection if increase_bm_data_size fails
96fbb39f21d3af7ca3e4dee78f8c45c4e2e652b5 Update README.md
c18bb56e6100177cfa0bef3c90708efb9d7a071d Add travis CI
9eaeca3a030692bdf949b89d80705061b516f70b Postpone freeing of X509 context to the first data exchange after handshake
28869ea94b3b1cabfbe8679d962adc12ba0b28db Use free followed by malloc instead of realloc when increasing raw buffer
43a90bcf3559ed145db9286f28bdcd8b07832b51 Merge pull request #8 from slaff/feature/lwipr-compat
66e1a5f423c0ee25d4318968ea14384887d287aa Merge pull request #7 from slaff/feature/sni
1154d0a985cc442f39f5e6b3678a7d4ffca5db31 Changed the code to reserve bytes for hostname only if needed.
63da8991c2878f2a7cd526667f9e23adc9dca1c9 Added SNI ( https://en.wikipedia.org/wiki/Server_Name_Indication ) support.
7c38865f66cfdd0884183619b0d1e89b8717cb01 Restructured the lwip raw comat code. Added replacements for the time functions on ESP8266.
885ff3e8f0455d48acbc5e67557602e9d548fd81 Merge pull request #6 from slaff/feature/lwip-raw
d78e7a07998f456d452a760d478d1518b009fd4a Initial version of axTLS integration with lwip raw tcp mode (http://lwip.wikia.com/wiki/Raw/TCP).
2016-02-26 18:41:27 +03:00
Ivan Grokhotkov
d891704c1e Reduce stack usage by Print::printf
Print::printf would allocate 1460 bytes on the stack, which in some cases would overflow the stack. Additionally it didn't handle (rare) cases when vsnprintf needed a buffer longer than 1460 bytes. This change makes default stack-allocated buffer 64 bytes long, and checks the result returned by vsnprintf. If a buffer longer than 64 bytes is needed, it is allocated on the heap.
2016-02-26 18:41:27 +03:00
raheelh
fdf8599aaa Fix a crash in String::changeBuffer()
Calling String::reserve() causes a crash if String object was in invalidated state. Per the comment on the method's declaration in ESP_SSD1306.h, This method was supposed to recover invalidated strings. This change fixes the edge case bug in String::changeBuffer() which is the root cause of the crash exposed from String::reserve().

Following test code was used to reproduce the problem and also to validate the fix:

String result;
while(true){
  char c = 'A';
  result += c; // the loop will cause malloc() to fail at some point.
  if (result.c_str()==0)
  {
    Serial.println("String INVALIDATED!!!!!");
    result.reserve(0);   // before fix, this would crash.
    Serial.println("Trying to empty....");
    result=""; 
    Serial.println("Emptied!!!!");
    break;
  } 
}
2016-02-22 22:57:21 -06:00
Markus
f28c5be479 Merge pull request #1666 from Links2004/master
not keep freed pointer of uart handler
2016-02-22 19:04:25 +01:00
Markus Sattler
28e6f33142 not keep freed pointer of uart handler 2016-02-22 18:24:10 +01:00
Markus
c7ff2b1fee Merge pull request #1665 from Links2004/master
add ISSUE_TEMPLATE.md
2016-02-22 18:08:54 +01:00
Markus Sattler
c33535c3db Merge remote-tracking branch 'remotes/esp8266/master' 2016-02-22 17:24:22 +01:00