1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-21 10:26:06 +03:00

2995 Commits

Author SHA1 Message Date
Markus
92cea85995 Merge pull request #1334 from Links2004/master
fix WiFi mode change typo
2015-12-31 00:33:38 +01:00
Markus Sattler
c488bfb84e fix WiFi mode change typo 2015-12-31 00:12:41 +01:00
Markus Sattler
9c923ecb9a Merge remote-tracking branch 'remotes/esp8266/master' into httpClient 2015-12-30 21:22:20 +01:00
Markus
35a46b95a5 Merge pull request #1317 from krzychb/master
doc: IDE 1.6.7 support for ArduinoOTA
2015-12-30 21:22:00 +01:00
Markus Sattler
288e879a13 disable debug 2015-12-30 21:21:30 +01:00
Markus Sattler
cc0037682b add CHUNKED encoding support too http client (#1324)
HTTP Client - fix examples
increase default timeout to 5000ms
2015-12-30 21:20:43 +01:00
krzychb
b8691b5e35 Merge branch 'master' into master 2015-12-30 20:19:58 +01:00
Markus
bbaed29b7e Merge pull request #1323 from Links2004/WiFi
rework WiFi
2015-12-30 19:32:41 +01:00
Markus Sattler
db4076fd41 add more debug for disconnect
add isConnected function for easier usage
2015-12-30 17:40:36 +01:00
Markus Sattler
00cd8e6f50 Merge remote-tracking branch 'remotes/esp8266/master' into WiFi 2015-12-30 11:20:52 +01:00
Markus
058bd19028 Merge pull request #1310 from SmartArduino/master
Add espduino board
2015-12-30 11:19:35 +01:00
yichone
ae34caad19 Merge branch 'master' into master 2015-12-30 14:23:14 +08:00
Christopher Pascoe
9d7c2fd5be Remove duplicate 'return' (copy-and-paste error). 2015-12-29 17:04:15 -05:00
Markus Sattler
4a68612af8 add API for connect / reconnect management 2015-12-29 21:01:48 +01:00
Christopher Pascoe
bc9493e690 Remove tracking of whether write() was called.
Tracking _written was required on AVR devices to work around a hardware
limitation when implementing flush().  The ESP8266 doesn't have the same
issue, so we can remove the tracking and make write() more lightweight.

The cost is a minor increase in work done in flush() when write() was not
previously called, but this should be much rarer than individual character
writes.
2015-12-29 12:46:25 -05:00
Christopher Pascoe
2375fb0f86 Cleanup: remove unused includes of cbuf.h. 2015-12-29 12:25:24 -05:00
Christopher Pascoe
4ef0466578 Don't trip the WDT if interrupts are disabled during write() or flush().
Prior to this change, if interrupts were disabled during a call to
HardwareSerial::write() when the circular buffer was full, or
HardwareSerial::flush() when the circular buffer was non-empty,
we would loop forever and trip a watchdog timeout.
2015-12-29 12:05:15 -05:00
Markus Sattler
d9a7a816d5 include core_esp8266_features.h in arduino.h for easier usage, and add WIFI_HAS_EVENT_CALLBACK 2015-12-29 17:44:00 +01:00
Markus Sattler
85905c12f2 allow multiple event callbacks and add filter option 2015-12-29 17:31:57 +01:00
Markus Sattler
61440d9e2b add WiFi sleep management
Note: testing needed
2015-12-29 16:15:11 +01:00
Markus Sattler
bbeaeaad54 add WiFi TX power control 2015-12-29 15:56:53 +01:00
Markus Sattler
8943ac402c add softAPgetStationNum 2015-12-29 15:40:54 +01:00
Markus Sattler
293e55c690 check for WiFi pass < 8 (not allowed for WPA2)
simplify STA config and allow setting of second DNS server for fallback
code style
2015-12-29 15:28:29 +01:00
Markus Sattler
7edcda4a0f IPAddress allow uint32_t compare 2015-12-29 15:26:14 +01:00
Markus Sattler
640d0bb65e improve error handling and return values 2015-12-29 15:00:47 +01:00
Markus Sattler
0ed104f028 add WiFi Event example 2015-12-29 14:38:13 +01:00
Markus Sattler
373da3df6b allow hook WiFi events from sketch 2015-12-29 14:33:10 +01:00
Markus Sattler
fd443d4e17 split ESP8266WiFiClass in different sub classes for better overview. 2015-12-29 14:03:15 +01:00
Christopher Pascoe
c8772cfcd0 Make HardwareSerial::begin() and end() interrupt safe and disable TX/RX if we can't allocate a buffer for them.
Prior to this change, the interrupt could fire during initialisation,
necessitating a deep check that the HardwareSerial structure had valid
_tx_buffer or _rx_buffer each time an interrupt occurred.

By keeping uart_t's and HardwareSerial's (txEnabled, _tx_buffer) and
(rxEnabled, _rx_buffer) in sync, we can remove this extra check, as
well as fixing a null pointer dereference if e.g. _tx_buffer allocation
failed and write() was subsequently called.
2015-12-28 19:11:12 -05:00
Christopher Pascoe
cfe7ae1118 Put HardwareSerial and cbuf methods called from interrupt context in RAM.
This is required per the non-OS SDK doc, which states:
  "Using non-OS SDK, please do not call any function defined with
  ICACHE_FLASH_ATTR in the interrupt handler."

This avoids an "Illegal instruction" exception with epc1 pointing at a valid
instruction (in flash) for one of the moved methods.
2015-12-28 18:35:27 -05:00
Christopher Pascoe
83398f6011 Don't bother testing isRxEnabled() on UART1 - it is always false. 2015-12-28 17:55:16 -05:00
Christopher Pascoe
e83dd4d241 Use lightweight tests when we only care if the buffer is empty or full. 2015-12-28 17:53:10 -05:00
Christopher Pascoe
e147314f97 Re-enable interrupts before directly enqueuing characters in the UART FIFO.
Not sure why, but this reduces the occurrence rate of an occasional ~3.25 or
~7μs intercharacter delay, which was interfering with use of the UART to
generate precise timing pulses (such as driving WS2812 LEDs).
2015-12-28 17:44:28 -05:00
Markus Sattler
6f00503bc3 add reconnect function for STA 2015-12-28 20:19:36 +01:00
Markus Sattler
cee4ef3078 less static stuff 2015-12-28 20:13:56 +01:00
Markus Sattler
64326f9573 rework mode management
may fixes: #1138
2015-12-28 19:30:56 +01:00
Markus Sattler
d521cea232 reorder part 3 2015-12-28 17:55:38 +01:00
Markus Sattler
20de9a5673 reorder part two 2015-12-28 17:38:58 +01:00
Markus Sattler
49b0821beb reorder part one 2015-12-28 17:22:36 +01:00
Markus Sattler
b1b19299bb mode docu to cpp and make it doxygen compatible 2015-12-28 17:02:09 +01:00
Markus Sattler
09a7940006 code style 2015-12-28 16:36:55 +01:00
krzychb
9fc5ac4ba1 IDE 1.6.7 support for ArduinoOTA
- addedd step by step ArdinoOTA
- updated package versions
- moved Trubleshooting section
2015-12-28 16:18:53 +01:00
Me No Dev
b28be23601 Merge remote-tracking branch 'esp8266/master' 2015-12-28 16:16:16 +02:00
Markus
4b90db41fe Merge pull request #1314 from gtalusan/master
fix undefined DEBUG_TLS_MEM_PRINT hiding return statement
2015-12-28 13:59:34 +01:00
George Talusan
c3de2851c0 fix undefined DEBUG_TLS_MEM_PRINT hiding return statement 2015-12-27 21:36:48 -05:00
yichone
70d0339813 Merge branch 'master' into master 2015-12-28 09:42:48 +08:00
Markus
304bf08497 Merge pull request #1312 from denvera/master
Allow setting TCP timeout
2015-12-27 20:09:34 +01:00
Denver Abrey
80857e3f87 Also set timeout on already existing connections 2015-12-27 20:02:08 +02:00
Denver Abrey
d1a6b32133 Allow setting TCP timeout 2015-12-27 19:45:17 +02:00
Markus
7a010a38cc Merge pull request #1309 from wemos/master
fix d1_mini board.
2015-12-27 11:53:38 +01:00