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

2618 Commits

Author SHA1 Message Date
Stefano-Orsolini
c52088c774 set max_connection from code (when less than 4 is needed) (#2326)
* Update ESP8266WiFiAP.cpp

It is not very common but some might require to set the maximum number of clients, from code, to smaller than 4.
in my case i must allow only one client at a time (TESTED WORKING)

* Update ESP8266WiFiAP.h

as discussed in the .cpp (set max connections)

* Update ESP8266WiFiAP.cpp

corrected indentation @70 
add param comment @86

* Update ESP8266WiFiAP.cpp
2016-08-01 11:45:34 +08:00
Ivan Kravets
be3727c71f Use stable documentation of PlatformIO (#2337) 2016-08-01 11:45:05 +08:00
Clemens Kirchgatterer
18297458be allows global object instances be switch off with defines (#2344) 2016-08-01 11:21:50 +08:00
martinayotte
bd01e44c76 fix link list bug in ESP8266mDNS (#2347) 2016-08-01 11:21:21 +08:00
Me No Dev
f50a6c0a8a Add support for 8 and 16 MB Flash (#2351)
Add to core dev config initially
2016-08-01 11:20:53 +08:00
Me No Dev
b7c7bc038d digitalWrite and digitalRead cancel analogWrite enabled on a pin (#2328)
related to https://github.com/esp8266/Arduino/issues/2175
2016-07-26 14:16:02 +03:00
Fabian Desoye
3fc3e9a99d Added PUT Request to HTTP Client (#2310)
* Added PUT Request to HTTP Client

* Replaced Tabstops with spaces
2016-07-26 18:23:38 +08:00
Clemens Kirchgatterer
4dc4e75216 allow F() to be used for uri parameter (#2319) 2016-07-26 18:23:14 +08:00
Me No Dev
7900132225 fix uart triggering wdt on recalling begin (#2307) 2016-07-21 00:20:58 +03:00
Me No Dev
6feecc5122 Fix analogWrite (#2299)
* Fix analogWrite

Move to NMI interrupt
Rework the whole ISR to take less and more constant cycles
Current defaults run 10bits/1KHz@160MHz and 9bit/1KHz@80MHz (soft
mapped)

* astyle and remove STORE_ATTR
2016-07-19 19:34:11 +08:00
sk1tt1sh
9c36ff9932 Fix example for ESP8266httpUpdate (#2251)
* Fix minor typo in spelling of failed. Removed s from http paths.

* add check if we are just updating spiffs to not reboot. example now works with this change.
2016-07-18 19:33:34 +08:00
Pauline Middelink
3f1ab1fd81 Updated String library to use C++11 iterators. (#2267)
This will allow using the String library in a ranged for loop:

```C++
String s("Hi, this is a test");

for (const char& ch : s) {
  Serial.print(ch);
}
```

and even modify

```C++
String s("Hi, this is another test");

for (char& ch : s) {
  ch++;
}
Serial.println(s);
```
2016-07-18 19:31:34 +08:00
Sergey Anisimov
98fe5617eb Adding onComplete event handler support for the asynchronous network scanning. (#2287) 2016-07-18 19:30:41 +08:00
Helio
f0e2c9f28b Fix typo (#2291)
Great *Arudino* boards!
Maybe is a Chinese rebrand. Like the Casdo calculators
😄
2016-07-18 19:29:25 +08:00
Me No Dev
e83f30a78d Ota hashed password (#2292)
* Add option to give ArduinoOTA a hashed value of the password

hashed password can be safely stored on flash

* Switch to separate method to accept the hash

* Calculate the hash of plain passwords at setup

* missed line

* Remove underscores from local variable
2016-07-18 19:28:56 +08:00
andig
c4f9f102ce Add getCommand() api for OTA update type (#2259) 2016-07-15 11:03:34 +03:00
Me No Dev
1f7989b31d Implement Async NBNS (NetBIOS) name resolution for Windows (#2275)
* Implement Async NBNS (NetBIOS) Name resolution for windows

Source: http://www.xpablo.cz/?p=751#more-751
2016-07-15 10:40:31 +03:00
Me No Dev
e35ebf137d Add support to Print::printf for printing from flash (#2266)
* Add support to Print::printf for printing from flash
2016-07-15 10:15:44 +03:00
Me No Dev
217ba9e072 fix typo in hspi_slave.c (#2276)
Current C++ implementation has this field hardcoded, so this case was
never hit
2016-07-15 09:53:20 +03:00
Me No Dev
07f4d4c241 Lwip addons (#2260)
* Add multicast TTL to UDP and rework UdpContext

* Add limit for TCP TIME_WAIT pcbs

* Add liblwip_gcc.a

* Make the changes be backward compatible with the current xcc version
2016-07-11 21:07:45 +08:00
SteveToulouse
86067333f5 Fix2115 (#2244)
* Update ESP8266WiFiMulti.cpp

Fix #2115

* Update ESP8266WiFiMulti.cpp

Fix #2115. Cleaner version (catch strdup("") fail).
2016-07-08 10:12:22 +08:00
Me No Dev
f8a8a2a359 Implement Serial RX Buffer (#2239)
In connection with:
https://github.com/esp8266/Arduino/issues/2237
https://github.com/esp8266/Arduino/issues/2037
https://github.com/esp8266/Arduino/issues/1683
2016-07-08 10:11:14 +08:00
Jeroen Vogelpoel
edba2d2829 Exposed sketch MD5 through HTTP headers (#2236)
* Exposed sketch MD5 through HTTP headers

* Updated spacing, docs, example
2016-07-08 10:07:21 +08:00
Me No Dev
0d996ab75e fix plain post content containing special chars being parsed as arguments (#2241)
this solution actually keeps the content as is, as long as it's text
(does not contain zeroes)
2016-07-07 00:59:26 +03:00
mmarchese1
24f84664e7 fixed argument passing (#2209)
Using espota.py as a module by calling espota.main(args) was not working because the args given to main were not being passed into parser.parse_args().  I fixed this by having main pass args to the parser function, which in turn passes them to the parser object's parse_args() function.
2016-07-06 10:59:23 +08:00
Me No Dev
4217e49b54 Initial SPI Slave implementation and examples (#2234)
* Initial SPI Slave implementation and examples

* Update style and info
2016-07-06 10:58:45 +08:00
Me No Dev
2364ad4dd0 Web Server Test (#1) (#2231)
* Initial WebServer Test

* ignore .pyc files

* add poster as requirement to virtualenv
2016-07-05 16:18:53 +08:00
Me No Dev
79ce12247e add option to define hardware folder as parameter (#2230)
current hardware folder used for the core is wrong, but I have not come
up with a way to properly configure it
2016-07-05 14:22:54 +08:00
Ivan Grokhotkov
7a2d2460f3 Add sample test for WiFiServer
Mostly an example of writing tests for servers
2016-07-04 18:22:27 +08:00
Me No Dev
af3b17c0bb add more begin timeout for networked sketches and actually fail if begin is not received (#2223) 2016-07-04 17:01:57 +08:00
Ivan Grokhotkov
39212baeb0 Fix WiFi.onStationModeDHCPTimeout (#2195) 2016-07-04 15:47:55 +08:00
Ivan Grokhotkov
438744044c Add test for mktime and localtime (#1745) 2016-07-04 15:07:23 +08:00
Me No Dev
e7a529eb45 Fix missing separator between get and post arguments (#2222)
* fix urlDecode points

Fixes:

https://github.com/esp8266/Arduino/issues/1989
https://github.com/esp8266/Arduino/issues/2198

* Add missing separator between get and plain post arguments
2016-07-04 09:08:31 +03:00
Krzysztof
dd1a7e91b8 ESP.restart() doesn't work, typo fixes (#2216)
New FAQ item: ESP.restart() doesn't work
Write up review / typo fixes
2016-07-04 10:46:04 +08:00
keramlevap
31a72cebb0 Documenting of ESP.getFlashChipRealSize() (#2210)
Hi, 
I added ESP.getFlashChipRealSize() function to the documentation. I couldn't determine flash size of my ESP based on getFlashChipSize function, so I was googling and found this: https://github.com/esp8266/Arduino/issues/785
I tested functionality and now adding here to official documentation.
Cheers!
2016-07-04 10:45:18 +08:00
Me No Dev
af06847f4a fix urlDecode points (#2212)
Fixes:
https://github.com/esp8266/Arduino/issues/1989
https://github.com/esp8266/Arduino/issues/2198
2016-07-01 02:37:15 +03:00
Krzysztof
9cc2bab276 Initial release of FAQ / Troubleshooting section (#2207)
* FAQ / Troubleshooting Final Draft release

readme.md
a01-espcomm_sync failed.md
a02-my-esp-crashes.md
a03-library-does-not-work.md
Total of five FAQ items
Emoji included
pictures folder

May need to read again in couple of days for another cleaning

Date:      Sun Jun 26 18:43:51 2016 +0200

* Frizing schematics added
2016-06-30 15:04:24 +08:00
Me No Dev
6390cf6bd6 Chunked encoding (#2199)
* Add chunked encoding

example:
```cpp
  server.on("/chunked", HTTP_GET, [](){
    server.send(200, "text/html", String());
    server.sendContent("<!DOCTYPE html><html><head><title>Chunked
Test</title></head><body>");
    server.sendContent("<p>Chunk 1</p>");
    server.sendContent("<p>Chunk 2</p>");
    server.sendContent("<p>Chunk 3</p>");
    server.sendContent("<p>Chunk 4</p>");
    server.sendContent("<p>Chunk 5</p>");
    server.sendContent("<p>Chunk 6</p>");
    server.sendContent("</html>");
    server.sendContent("");//end of chunked
  });
```

* update examples, keep setContentLength and add bool _chunked

* fix wrong session id

* set _chunked to false earlier for cases where users use only sendContent
2016-06-28 14:35:12 +08:00
Ivan Grokhotkov
6d3109e8c7 Remove implementations of non-ISO libc functions which are present in newlib 2016-06-27 21:10:41 +08:00
Ivan Grokhotkov
1588b45a8a Force core_version to be added to compiled binary 2016-06-24 10:54:51 +08:00
Ivan Grokhotkov
2929124028 Link ESP-NOW library 2016-06-24 10:36:58 +08:00
Ivan Grokhotkov
8831ef562e Fix messed up linux toolchain checksums (#2185) 2016-06-24 10:36:13 +08:00
Ivan Grokhotkov
e3f0a65b10 Bump platform.txt version 2016-06-23 18:42:14 +08:00
Ivan Grokhotkov
93d627a61d Update SDK to 1.5.4 (#2138) 2016-06-23 18:39:40 +08:00
Ivan Grokhotkov
1e7e5d4e96 Fix _packed redefinition 2016-06-23 17:53:25 +08:00
Ivan Grokhotkov
8db4dcea42 WifiClient::write refactoring (second attempt) (#2177)
* WiFiClient: use DataSource for writes

* ESP8266WebServer: delegate writing to WiFiClient

* ESP8266WebServer: set write timeout before sending content
2016-06-23 17:47:18 +08:00
Ivan Grokhotkov
5e3df08273 Add tests for sqrt, fmod (#612) and floating point printf/scanf (#1179) 2016-06-23 17:44:33 +08:00
Ivan Grokhotkov
b91e929d49 Enable floating point formatting in sprintf/sscanf (#1179) 2016-06-23 17:37:06 +08:00
Ivan Grokhotkov
d7d98d03ca Use libc from newlib (#1752)
* Use newlib libc library

This change adds libcmin.a, which is created from newlib libc by selectively removing some of the object files (mostly related to heap management).
The list of files is available in tools/sdk/lib/make_libcmin.sh. Files which are not needed are commented out.
This change adds support for various functions which were missing, like sscanf, strftime, etc.

* Fix some of the time functions

* Redirect stdout to serial

* Implement __putc_r

* Switch to custom newlib build

Built from https://github.com/igrr/newlib-xtensa using:
./configure --with-newlib --enable-multilib --disable-newlib-io-c99-formats --enable-newlib-supplied-syscalls --enable-target-optspace --program-transform-name="s&^&xtensa-lx106-elf-&" --disable-option-checking --with-target-subdir=xtensa-lx106-elf --target=xtensa-lx106-elf --enable-newlib-nano-formatted-io --enable-newlib-reent-small  --prefix=path-to-arduino-core/tools/sdk/libc
CROSS_CFLAGS="-DMALLOC_PROVIDED -DSIGNAL_PROVIDED -DABORT_PROVIDED" make
make install

* Update tests
2016-06-23 17:27:57 +08:00
Ivan Grokhotkov
d28c551bd2 Update documentation links 2016-06-23 15:45:49 +08:00