1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-24 08:45:10 +03:00

423 Commits

Author SHA1 Message Date
Markus Sattler
d15225430e Align the start of functions to the next power-of-two greater than 4, skipping up to 3 bytes. 2015-05-17 13:53:31 +02:00
Markus Sattler
5b5deb5a77 improve os_printf handling when buffer full.
- wait for free buffer in hw fifo
2015-05-17 13:43:49 +02:00
Markus Sattler
e0f9a4173e force all os_malloc calls to request a aligned size.
- this fix Fatal exception (9) by unaligned class memory
2015-05-17 13:33:10 +02:00
Markus Sattler
e50fc0fef8 fix possible problems in EEPROM regarding interrupt handling and SPI flash blocking 2015-05-16 23:10:06 +02:00
Markus Sattler
03da6393d5 improve includes
add ssid and ip to debug out
2015-05-16 22:56:15 +02:00
Markus Sattler
508f0802d5 add examples/WiFiMulti/WiFiMulti.ino 2015-05-16 22:47:29 +02:00
Markus Sattler
108a40acfd add support for list of AP connections
- auto select ssid with best signal
 - for debugging enable DEBUG_WIFI_MULTI macro and call Serial.setDebugOutput(true);

change ESP8266WiFiClass::status() return type to wl_status_t
2015-05-16 22:40:53 +02:00
Markus Sattler
d8df646fc5 Merge remote-tracking branch 'remotes/esp8266/esp8266' into esp8266 2015-05-15 14:36:29 +02:00
Markus Sattler
2eea25873d fix SPI speed calculation @160Mhz Clock 2015-05-15 13:42:30 +02:00
Ivan Grokhotkov
221fbb548f Merge pull request #242 from Makuna/esp8266
dtostrf fix for remainder leading zeros
2015-05-15 11:00:58 +03:00
Markus Sattler
b4a8bb0653 fix bug when TX buffer is full and os will write.
in this case we hang endless or until wtd triggers.

new:
 now we overdrive the data in FIFO --> no hang / crash but we loss chars.
 only happens by extensive use of os_printf!
2015-05-14 21:45:19 +02:00
Makuna
ed77f2d42b dtostrf fix for remainder leading zeros
Fix remainder to display leading zeros
2015-05-14 11:56:03 -07:00
Ivan Grokhotkov
4644c3bad0 boolean -> bool 2015-05-14 15:05:24 +03:00
Ivan Grokhotkov
3c9d1f20bb Merge branch 'ficeto-esp8266' into esp8266
* ficeto-esp8266:
  add template methods for stream to stream writes to SD and FS
  alignment not needed. we use fixed addresses
  Rework SPIFFS API to be more Arduino like
  fix missed edits
  disable automount
  fix SPIFFS to work
  pull get/set NoDelay for WiFiClient
  Add SPIFFS Support
  export sketch data folder to the build config
  Revert "Revert "Edit SD Server example to use the new Write(Stream) method""
  add template client write
  Revert "Add WiFiClient.write for Stream"
  Revert "Edit SD Server example to use the new Write(Stream) method"
  Edit SD Server example to use the new Write(Stream) method
  Add WiFiClient.write for Stream
  make upload callback packets aligned to defined size

Conflicts:
	hardware/esp8266com/esp8266/libraries/ESP8266WebServer/examples/SDWebServer/SDWebServer.ino
	hardware/esp8266com/esp8266/libraries/ESP8266WebServer/src/ESP8266WebServer.cpp
	hardware/esp8266com/esp8266/libraries/ESP8266WebServer/src/ESP8266WebServer.h
2015-05-14 14:38:22 +03:00
Ivan Grokhotkov
dea91ca620 Merge branch 'esp8266' of https://github.com/ficeto/Arduino into ficeto-esp8266 2015-05-14 13:34:31 +03:00
Ivan Grokhotkov
36d0968ada Web server refactoring 2015-05-14 13:33:12 +03:00
ficeto
2e9a038f68 add template methods for stream to stream writes to SD and FS 2015-05-14 12:41:24 +03:00
ficeto
5181f90725 alignment not needed. we use fixed addresses 2015-05-14 12:14:39 +03:00
ficeto
cde17ac259 Merge pull request #19 from esp8266/esp8266
pull latest changes
2015-05-14 11:48:36 +03:00
ficeto
53e8bd8f4d Rework SPIFFS API to be more Arduino like
SD Style commands and Stream API
2015-05-14 11:29:26 +03:00
Ivan Grokhotkov
eb37830238 move hexdump declaration to debug.h 2015-05-14 02:48:30 +03:00
Ivan Grokhotkov
ce73ac216b fix SDWebServer sample 2015-05-14 02:47:39 +03:00
Ivan Grokhotkov
b330cb794a Merge branch 'Links2004-esp8266' into esp8266
* Links2004-esp8266:
  add hexdump function for easy debugging.
  add some notes to the SPI functions (aligned to 32Bit)  - Fatal exception (9)
2015-05-14 02:35:03 +03:00
Ivan Grokhotkov
9f2c3a4bd2 Merge branch 'esp8266' of https://github.com/Links2004/Arduino into Links2004-esp8266 2015-05-14 02:34:21 +03:00
Ivan Grokhotkov
aacfd9663a Merge pull request #236 from Makuna/esp8266
PgmSpace support
2015-05-14 02:31:39 +03:00
Ivan Grokhotkov
6e00fe8e83 Merge branch 'esp8266' of https://github.com/ficeto/Arduino into ficeto-esp8266 2015-05-14 01:58:59 +03:00
ficeto
cfac2cacb1 fix missed edits 2015-05-14 01:06:55 +03:00
ficeto
5d1ee7ace6 disable automount 2015-05-14 00:53:55 +03:00
ficeto
f501530f37 fix SPIFFS to work 2015-05-14 00:44:33 +03:00
Markus Sattler
a17aded8d6 add hexdump function for easy debugging.
Output:
[HEXDUMP] Address: 0x3FFF5188 len: 0x200 (512)
[0x3FFF5188] 0x00000000: E6 D1 E6 D1 E6 D1 E6 D1 E6 D1 E6 D1 E6 D1 E6 D1
[0x3FFF5198] 0x00000010: E6 D1 E6 D1 E6 D1 E6 D1 E6 D1 E6 D1 E6 D1 E6 D1
[0x3FFF51A8] 0x00000020: E6 D1 E6 D1 E6 D1 E6 D1 E6 D1 E6 D1 E6 D1 E6 D1
[0x3FFF51B8] 0x00000030: E6 D1 E6 D1 E6 D1 E6 D1 E6 D1 E6 D1 E6 D1 E6 D1
[0x3FFF51C8] 0x00000040: E6 D1 E6 D1 E6 D1 E6 D1 E6 D1 E6 D1 E6 D1 E6 D1
[0x3FFF51D8] 0x00000050: E6 D1 E6 D1 E6 D1 E6 D1 E6 D1 E6 D1 E6 D1 E6 D1
[0x3FFF51E8] 0x00000060: E6 D1 E6 D1 E6 D1 E6 D1 E6 D1 E6 D1 E6 D1 E6 D1
....
2015-05-13 22:54:09 +02:00
Makuna
81d27b403e PgmSpace working
PSTR() and F() macros correctly place string into flash memory relying
on PROGMEM
PROGMEM uses ICACHE_RODATA_ATTR
Print and String classes fixed up
str* classes fixed up
2015-05-13 11:27:54 -07:00
Markus Sattler
e0c1b47937 add some notes to the SPI functions (aligned to 32Bit)
- Fatal exception (9)
2015-05-13 19:03:21 +02:00
ficeto
3e7b8515e4 pull get/set NoDelay for WiFiClient 2015-05-13 20:01:05 +03:00
ficeto
3ff7641329 Add SPIFFS Support 2015-05-13 19:50:31 +03:00
ficeto
8d1c59842e Revert "Revert "Edit SD Server example to use the new Write(Stream) method""
This reverts commit 163a98375637ab8e3e177bb7853303e397e39dc0.
2015-05-13 12:48:14 +03:00
ficeto
5eee3da4d5 add template client write
can read streams that have "available()" and "read(buf, len)" methods
thanks @igrr
2015-05-13 12:47:29 +03:00
ficeto
74a2b75cf9 Revert "Add WiFiClient.write for Stream"
This reverts commit fa24d770c5096ad7a8894c3e5221c1358efe128c.
2015-05-13 12:45:48 +03:00
ficeto
2f45612bb8 Revert "Edit SD Server example to use the new Write(Stream) method"
This reverts commit 4ae8a6d631d532409dde5ea35af03bccbb62974f.
2015-05-13 12:15:52 +03:00
ficeto
30228c3641 Edit SD Server example to use the new Write(Stream) method 2015-05-13 12:09:34 +03:00
ficeto
f4969ce0e5 Add WiFiClient.write for Stream
reads directly from the stream and fragments the data to achieve
maximum data throughput over WiFi
2015-05-13 12:07:42 +03:00
ficeto
c0fdd09132 make upload callback packets aligned to defined size
having this a multiple of 512 bytes helps writing to SDcard
2048 looks reasonable and fast, but could be lowered if too much
2015-05-13 01:09:44 +03:00
ficeto
8774b6ed48 Merge pull request #18 from esp8266/esp8266
add missing includes to mDNS library
2015-05-12 21:06:47 +03:00
Ivan Grokhotkov
b959e82165 add missing includes to mDNS library 2015-05-12 21:05:00 +03:00
ficeto
e12509e4b3 Merge pull request #17 from esp8266/esp8266
pull latest changes
2015-05-12 20:53:19 +03:00
Ivan Grokhotkov
42f4d8d19a Merge branch 'ficeto-esp8266' into esp8266
* ficeto-esp8266:
  remove qsort dependency and add TelnetToSerial example
  add TCP_NODELAY control
2015-05-12 20:47:35 +03:00
Ivan Grokhotkov
371320bc45 Merge branch 'esp8266' of https://github.com/ficeto/Arduino into ficeto-esp8266 2015-05-12 20:46:57 +03:00
ficeto
7512339b0c remove qsort dependency and add TelnetToSerial example 2015-05-12 20:41:31 +03:00
ficeto
f2f1fad298 add TCP_NODELAY control 2015-05-12 19:25:37 +03:00
Ivan Grokhotkov
936265357b Merge branch 'jwatte-esp8266' into esp8266
* jwatte-esp8266:
  Fix UDP send to not temporarily use connect()
2015-05-12 19:18:19 +03:00
Ivan Grokhotkov
720142ef24 Merge branch 'esp8266' of https://github.com/jwatte/Arduino into jwatte-esp8266 2015-05-12 19:11:22 +03:00